aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-13 18:17:15 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit1ab675445e52000d8b667c898aae041357304a33 (patch)
tree84b956121212a0b15316843dcfca3cda6ca4ad7f /tpl/default
parentbaa6979194573855b260593094983c33ec338dc7 (diff)
downloadShaarli-1ab675445e52000d8b667c898aae041357304a33.tar.gz
Shaarli-1ab675445e52000d8b667c898aae041357304a33.tar.zst
Shaarli-1ab675445e52000d8b667c898aae041357304a33.zip
Fix bookmarklet with new routes
* Use the new shaare route * Add source hidden input in editlink template to close the popup after saving
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/editlink.html1
-rw-r--r--tpl/default/tools.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html
index 15edb00d..568545bd 100644
--- a/tpl/default/editlink.html
+++ b/tpl/default/editlink.html
@@ -81,6 +81,7 @@
81 </div> 81 </div>
82 82
83 <input type="hidden" name="token" value="{$token}"> 83 <input type="hidden" name="token" value="{$token}">
84 <input type="hidden" name="source" value="{$source}">
84 {if="$http_referer"} 85 {if="$http_referer"}
85 <input type="hidden" name="returnurl" value="{$http_referer}"> 86 <input type="hidden" name="returnurl" value="{$http_referer}">
86 {/if} 87 {/if}
diff --git a/tpl/default/tools.html b/tpl/default/tools.html
index fd58cca9..d07dabd0 100644
--- a/tpl/default/tools.html
+++ b/tpl/default/tools.html
@@ -86,7 +86,7 @@
86 alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); 86 alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
87 } 87 }
88 window.open( 88 window.open(
89 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ 89 '{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+
90 '&amp;title='%20+%20encodeURIComponent(title)+ 90 '&amp;title='%20+%20encodeURIComponent(title)+
91 '&amp;description='%20+%20encodeURIComponent(desc)+ 91 '&amp;description='%20+%20encodeURIComponent(desc)+
92 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' 92 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'