From: ArthurHoaro Date: Thu, 25 May 2017 13:51:48 +0000 (+0200) Subject: Merge pull request #881 from ArthurHoaro/feature/note-bookmarklet X-Git-Tag: v0.9.1~1^2~28 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b2e2aa42e288e0becaa95bf9cc3be679743fc98e;hp=81a91579ba8eb7b5a203722baf927a3653b5cb94;p=github%2Fshaarli%2FShaarli.git Merge pull request #881 from ArthurHoaro/feature/note-bookmarklet Add Note bookmarklet #580 --- diff --git a/tpl/default/tools.html b/tpl/default/tools.html index baa033af..6951ad28 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -86,8 +86,16 @@
+ class="bookmarklet-link" + href="javascript:( + function(){ + window.open( + '{$pageabsaddr}?private=1&post='+ + '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' + ); + } + )();"> ✚ {'Add Note'|t}
@@ -146,4 +154,3 @@ value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> - diff --git a/tpl/vintage/tools.html b/tpl/vintage/tools.html index c36aa5b5..69689807 100644 --- a/tpl/vintage/tools.html +++ b/tpl/vintage/tools.html @@ -39,7 +39,15 @@

✚Add Note + href="javascript:( + function(){ + window.open( + '{$pageabsaddr}?private=1&post='+ + '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' + ); + } + )();">✚Add Note ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).