From 1ab675445e52000d8b667c898aae041357304a33 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 13 Jun 2020 18:17:15 +0200 Subject: Fix bookmarklet with new routes * Use the new shaare route * Add source hidden input in editlink template to close the popup after saving --- tpl/default/tools.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/default/tools.html') 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 @@ alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); } window.open( - '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ + '{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+ '&title='%20+%20encodeURIComponent(title)+ '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' -- cgit v1.2.3