1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-23 20:54:23 +01:00

Correct Title in bookmarklet

This commit is contained in:
Brice Maron 2013-06-27 23:10:53 +02:00
parent a22cb98365
commit 3d44474eb4

View File

@ -8,7 +8,7 @@
*/ */
function bookmarklet(){ function bookmarklet(){
$l = new OC_l10n('bookmarks'); $l = new OC_l10n('bookmarks');
$blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=document.title,d=a.open('"; $blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('";
$blet .= OCP\Util::linkToAbsolute('bookmarks', 'addBm.php'); $blet .= OCP\Util::linkToAbsolute('bookmarks', 'addBm.php');
$blet .= "?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();"; $blet .= "?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();";
$help_msg = $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:'); $help_msg = $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:');