diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-25 16:45:08 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-05-25 16:45:08 +0200 |
commit | d6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc (patch) | |
tree | 90eb8595cd80dc5568bae0076a1f460aedc1d590 /tpl | |
parent | 3e395a6bc63cba16b0772a382f6cbac0ce4ab906 (diff) | |
download | Shaarli-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')
-rw-r--r-- | tpl/default/tools.html | 4 |
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 | '&title='%20+%20encodeURIComponent(title)+ | 77 | '&title='%20+%20encodeURIComponent(title)+ |
78 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | 78 | '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ |
79 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | 79 | '&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&post='+ | 93 | '{$pageabsaddr}?private=1&post='+ |
94 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | 94 | '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ |
95 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | 95 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' |
96 | ); | 96 | ); |
97 | } | 97 | } |