aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/tools.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-25 16:45:08 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-25 16:45:08 +0200
commitd6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc (patch)
tree90eb8595cd80dc5568bae0076a1f460aedc1d590 /tpl/default/tools.html
parent3e395a6bc63cba16b0772a382f6cbac0ce4ab906 (diff)
downloadShaarli-d6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc.tar.gz
Shaarli-d6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc.tar.zst
Shaarli-d6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc.zip
Selection is now limited to 2k characters using bookmarklets
to avoid having too large URL Fixes #528
Diffstat (limited to 'tpl/default/tools.html')
-rw-r--r--tpl/default/tools.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/default/tools.html b/tpl/default/tools.html
index 6951ad28..bf6b6ca3 100644
--- a/tpl/default/tools.html
+++ b/tpl/default/tools.html
@@ -75,7 +75,7 @@
75 window.open( 75 window.open(
76 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ 76 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
77 '&amp;title='%20+%20encodeURIComponent(title)+ 77 '&amp;title='%20+%20encodeURIComponent(title)+
78 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+ 78 '&amp;description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+
79 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' 79 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
80 ); 80 );
81 } 81 }
@@ -91,7 +91,7 @@
91 function(){ 91 function(){
92 window.open( 92 window.open(
93 '{$pageabsaddr}?private=1&amp;post='+ 93 '{$pageabsaddr}?private=1&amp;post='+
94 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+ 94 '&amp;description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+
95 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' 95 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
96 ); 96 );
97 } 97 }