Merge pull request #1732 from ArthurHoaro/fix/legacy-bookmarklet-url

Change legacy URL route for Add Note bookmarklet
This commit is contained in:
ArthurHoaro 2021-04-05 11:10:54 +02:00 committed by GitHub
commit 8b428dabea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ <h2 class="window-title">Bookmarklets</h2>
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}admin/shaare?private=1&amp;post='+
'&amp;description='%20+%20encodeURIComponent(desc)+ '&amp;description='%20+%20encodeURIComponent(desc)+
'&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
); );

View file

@ -42,7 +42,7 @@
href="javascript:( href="javascript:(
function(){ function(){
window.open( window.open(
'{$pageabsaddr}?private=1&amp;post='+ '{$pageabsaddr}admin/shaare?private=1&amp;post='+
'&amp;description='%20+%20encodeURIComponent(document.getSelection())+ '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
'&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
); );