aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-06-11 14:09:42 +0200
committerArthurHoaro <arthur@hoa.ro>2017-06-11 14:09:42 +0200
commit8eb6bac137d31b36ff2da5970f1ac398cf574435 (patch)
tree0c5478ce6f3d48019475a0d34d60590caa82d413 /tpl
parent88535f20a9c1bde4d0461561a5a60be6b2bf4745 (diff)
downloadShaarli-8eb6bac137d31b36ff2da5970f1ac398cf574435.tar.gz
Shaarli-8eb6bac137d31b36ff2da5970f1ac398cf574435.tar.zst
Shaarli-8eb6bac137d31b36ff2da5970f1ac398cf574435.zip
Fix Firefox Social button in the default theme
is no longer required since the JS function is now in . Also, include the trailing slash in the post URL. Fixes #895
Diffstat (limited to 'tpl')
-rw-r--r--tpl/default/js/shaarli.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js
index b120c91e..4f49affa 100644
--- a/tpl/default/js/shaarli.js
+++ b/tpl/default/js/shaarli.js
@@ -606,7 +606,7 @@ function htmlEntities(str)
606 606
607function activateFirefoxSocial(node) { 607function activateFirefoxSocial(node) {
608 var loc = location.href; 608 var loc = location.href;
609 var baseURL = loc.substring(0, loc.lastIndexOf("/")); 609 var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1);
610 610
611 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. 611 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
612 var data = { 612 var data = {
@@ -619,7 +619,7 @@ function activateFirefoxSocial(node) {
619 icon32URL: baseURL + "/images/favicon.ico", 619 icon32URL: baseURL + "/images/favicon.ico",
620 icon64URL: baseURL + "/images/favicon.ico", 620 icon64URL: baseURL + "/images/favicon.ico",
621 621
622 shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", 622 shareURL: baseURL + "?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi",
623 homepageURL: baseURL 623 homepageURL: baseURL
624 }; 624 };
625 node.setAttribute("data-service", JSON.stringify(data)); 625 node.setAttribute("data-service", JSON.stringify(data));