Press This: properly add and load press-this-ie.css, cleanup of the bookmarklet code. Props azaozz. see #6813

git-svn-id: https://develop.svn.wordpress.org/trunk@8323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-07-13 04:57:01 +00:00
parent be46d3e59b
commit 3becff10c3
4 changed files with 22 additions and 16 deletions
+10 -10
View File
@@ -745,16 +745,16 @@ function posts_nav_link($sep=' — ', $prelabel='« Previous Page', $nx
function get_shortcut_link() {
$link = "javascript:
var d=document;
var w=window;
var e=w.getSelection;
var k=d.getSelection;
var x=d.selection;
var s=(e?e():(k)?k():(x?x.createRange().text:0));
var f='" . admin_url('press-this.php') . "';
var l=d.location;
var e=encodeURIComponent;
var g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
var d=document,
w=window,
e=w.getSelection,
k=d.getSelection,
x=d.selection,
s=(e?e():(k)?k():(x?x.createRange().text:0)),
f='" . admin_url('press-this.php') . "',
l=d.location,
e=encodeURIComponent,
g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
function a(){
if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=700,height=500')){
l.href=g;