Make WordPress Core

Changeset 738


Ignore:
Timestamp:
01/08/2004 03:30:23 AM (22 years ago)
Author:
alex_t_king
Message:

made the bookmarklet safari compatible and enabled passing in the title, task #49

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/bookmarklet.php

    r704 r738  
    5353        $post_title = $popuptitle;
    5454    }
     55// I'm not sure why we're using $edited_post_title in the edit-form.php, but we are
     56// and that is what is being included below. For this reason, I am just duplicating
     57// the var instead of changing the assignment on the lines above.
     58// -- Alex King 2004-01-07
     59    $edited_post_title = $post_title;
    5560   
    5661    $content = $_REQUEST['content'];
  • trunk/wp-admin/post.php

    r732 r738  
    687687if ($is_NS4 || $is_gecko) {
    688688?>
    689     <a href="javascript:Q=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">Press It
     689    <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo $siteurl ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'WordPress bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));">Press It
    690690    - <?php echo $blogname ?></a>
    691691    <?php
Note: See TracChangeset for help on using the changeset viewer.