Merge pull request #934 from thewilli/fix-note-bookmarklet

fixed note bookmarklet
This commit is contained in:
ArthurHoaro 2017-08-25 19:15:24 +02:00 committed by GitHub
commit c4ac70acbb

View file

@ -97,7 +97,7 @@ <h2 class="window-title">Bookmarklets</h2>
var%20desc=document.getSelection().toString(); var%20desc=document.getSelection().toString();
if(desc.length>4000){ if(desc.length>4000){
desc=desc.substr(0,4000)+'...'; desc=desc.substr(0,4000)+'...';
alert("{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}"); alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
} }
window.open( window.open(
'{$pageabsaddr}?private=1&amp;post='+ '{$pageabsaddr}?private=1&amp;post='+