aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorphilipp-r <philipp-r@users.noreply.github.com>2017-03-27 14:01:06 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-25 15:34:26 +0200
commitbb8cf6d3620456d5026df667752b793192f44fe1 (patch)
treea8efac44b0392a2fb4e73279781b103ca4446e9d
parent06cb3300f317856a9bbc243ef54042e6ad5cdc1c (diff)
downloadShaarli-bb8cf6d3620456d5026df667752b793192f44fe1.tar.gz
Shaarli-bb8cf6d3620456d5026df667752b793192f44fe1.tar.zst
Shaarli-bb8cf6d3620456d5026df667752b793192f44fe1.zip
Add Note bookmarklet #580
-rw-r--r--tpl/default/tools.html13
-rw-r--r--tpl/vintage/tools.html10
2 files changed, 19 insertions, 4 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&amp;post=" 89 class="bookmarklet-link"
90 class="bookmarklet-link"> 90 href="javascript:(
91 function(){
92 window.open(
93 '{$pageabsaddr}?private=1&amp;post='+
94 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
95 '&amp;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
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 @@
39 </a><br><br> 39 </a><br><br>
40 <a class="smallbutton" 40 <a class="smallbutton"
41 onclick="return alertBookmarklet();" 41 onclick="return alertBookmarklet();"
42 href="?private=1&amp;post="><b>✚Add Note</b></a> 42 href="javascript:(
43 function(){
44 window.open(
45 '{$pageabsaddr}?private=1&amp;post='+
46 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
47 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
48 );
49 }
50 )();"><b>✚Add Note</b></a>
43 <a href="#" onclick="return alertBookmarklet();"> 51 <a href="#" onclick="return alertBookmarklet();">
44 <span> 52 <span>
45 &#x21D0; Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br> 53 &#x21D0; Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br>