Merge pull request #881 from ArthurHoaro/feature/note-bookmarklet
Add Note bookmarklet #580
This commit is contained in:
commit
b2e2aa42e2
2 changed files with 19 additions and 4 deletions
|
@ -86,8 +86,16 @@ <h2 class="window-title">Bookmarklets</h2>
|
||||||
<div class="tools-item">
|
<div class="tools-item">
|
||||||
<a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
|
<a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
|
||||||
{'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}"
|
{'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}"
|
||||||
href="?private=1&post="
|
class="bookmarklet-link"
|
||||||
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'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
)();">
|
||||||
<span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span>
|
<span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,4 +154,3 @@ <h2 class="window-title">{'3rd party'|t}</h2>
|
||||||
value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}">
|
value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}">
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,15 @@
|
||||||
</a><br><br>
|
</a><br><br>
|
||||||
<a class="smallbutton"
|
<a class="smallbutton"
|
||||||
onclick="return alertBookmarklet();"
|
onclick="return alertBookmarklet();"
|
||||||
href="?private=1&post="><b>✚Add Note</b></a>
|
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'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
)();"><b>✚Add Note</b></a>
|
||||||
<a href="#" onclick="return alertBookmarklet();">
|
<a href="#" onclick="return alertBookmarklet();">
|
||||||
<span>
|
<span>
|
||||||
⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br>
|
⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br>
|
||||||
|
|
Loading…
Reference in a new issue