Selection is now limited to 2k characters using bookmarklets
to avoid having too large URL Fixes #528
This commit is contained in:
parent
3e395a6bc6
commit
d6aec9e60b
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@
|
|||
window.open(
|
||||
'{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
|
||||
'&title='%20+%20encodeURIComponent(title)+
|
||||
'&description='%20+%20encodeURIComponent(document.getSelection())+
|
||||
'&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+
|
||||
'&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
|
||||
);
|
||||
}
|
||||
|
@ -91,7 +91,7 @@
|
|||
function(){
|
||||
window.open(
|
||||
'{$pageabsaddr}?private=1&post='+
|
||||
'&description='%20+%20encodeURIComponent(document.getSelection())+
|
||||
'&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+
|
||||
'&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue