diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-25 15:51:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 15:51:48 +0200 |
commit | b2e2aa42e288e0becaa95bf9cc3be679743fc98e (patch) | |
tree | 3caa77e913e01ecf621c5d685964616d275754b9 /tpl/default | |
parent | 81a91579ba8eb7b5a203722baf927a3653b5cb94 (diff) | |
parent | bb8cf6d3620456d5026df667752b793192f44fe1 (diff) | |
download | Shaarli-b2e2aa42e288e0becaa95bf9cc3be679743fc98e.tar.gz Shaarli-b2e2aa42e288e0becaa95bf9cc3be679743fc98e.tar.zst Shaarli-b2e2aa42e288e0becaa95bf9cc3be679743fc98e.zip |
Merge pull request #881 from ArthurHoaro/feature/note-bookmarklet
Add Note bookmarklet #580
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/tools.html | 13 |
1 files changed, 10 insertions, 3 deletions
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 @@ | |||
86 | <div class="tools-item"> | 86 | <div class="tools-item"> |
87 | <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t}, | 87 | <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t}, |
88 | {'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}" | 88 | {'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}" |
89 | href="?private=1&post=" | 89 | class="bookmarklet-link" |
90 | class="bookmarklet-link"> | 90 | href="javascript:( |
91 | function(){ | ||
92 | window.open( | ||
93 | '{$pageabsaddr}?private=1&post='+ | ||
94 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | ||
95 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | ||
96 | ); | ||
97 | } | ||
98 | )();"> | ||
91 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span> | 99 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span> |
92 | </a> | 100 | </a> |
93 | </div> | 101 | </div> |
@@ -146,4 +154,3 @@ | |||
146 | value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> | 154 | value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> |
147 | </body> | 155 | </body> |
148 | </html> | 156 | </html> |
149 | |||