X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Ftools.html;h=72fd58aff680b59a1773bc25c6624550034c318d;hb=715ad9bd6b379cbb2c763ae0eaa3a7fe526c35b1;hp=b9df32d9ee31ca8bdd386f58a5c60ef253e976a4;hpb=5978588578ca103152598ccfbe41019b12e00a4f;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/tools.html b/tpl/default/tools.html index b9df32d9..72fd58af 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -67,15 +67,20 @@
+ class="bookmarklet-link" + href="javascript:( + function(){ + var%20desc=document.getSelection().toString(); + if(desc.length>4000){ + desc=desc.substr(0,4000)+'...'; + alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); + } + window.open( + '{$pageabsaddr}?private=1&post='+ + '&description='%20+%20encodeURIComponent(desc)+ + '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' + ); + } + )();"> ✚ {'Add Note'|t}
@@ -103,7 +121,7 @@
+ id="ff-social-button"> ✚ {'Add to'|t} Firefox Social
@@ -142,38 +160,7 @@ {include="page.footer"} - - + -