aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-17 14:06:04 +0100
committerplegall <plg@piwigo.org>2015-12-17 14:06:04 +0100
commitb1b91992581b769fba5dae51aa5fb17b155516ba (patch)
treee8935f72232c1a1e8703c397fa625b2fd1502692
parentf66c27b731e5b6ed4d8c58fd89cf2156ebeef75a (diff)
feature #379, multiple format, hide url on download link
-rw-r--r--themes/default/template/picture.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 331de8384..c576748fb 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -72,6 +72,8 @@ function changeImgSrc(url,typeSave,typeMap)
{if !empty($current.formats)}
{footer_script require='jquery'}{literal}
jQuery().ready(function() {
+ jQuery("#downloadSwitchLink").removeAttr("href");
+
jQuery("#downloadSwitchLink").click(function() {
var elt = jQuery("#downloadSwitchBox");