diff options
author | Andrew Dolgov <[email protected]> | 2012-10-31 12:55:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-31 12:55:24 +0400 |
commit | 1b4d1a6b449de081f2d45983df11950ac4c453bc (patch) | |
tree | 7fd3cf93fefb8c727448b5673e3acee8a75dbe59 /classes/pref | |
parent | 4021d61ada06b250d40c4c508ab128581dc2e1ef (diff) |
sharepopup: implement assigning labels while sharing
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/feeds.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 91c504ce4..8cfa5336a 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1479,7 +1479,7 @@ class Pref_Feeds extends Handler_Protected { print "<p>" . __("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS") . "</p>"; - $bm_url = htmlspecialchars("javascript:(function(){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='".SELF_URL_PATH."/public.php?op=sharepopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=500,height=200')){l.href=g;}}a();})()"); + $bm_url = htmlspecialchars("javascript:(function(){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='".SELF_URL_PATH."/public.php?op=sharepopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=500,height=250')){l.href=g;}}a();})()"); print "<a href=\"$bm_url\" class='bookmarklet'>" . __('Share with Tiny Tiny RSS'). "</a>"; |