From 679e2bf5fdfb59ec237d3768f3ab5ea578649340 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 6 Mar 2012 20:43:18 +0000 Subject: added event for src image url simplify js in picture.tpl action.php fix history saving git-svn-id: http://piwigo.org/svn/trunk@13489 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/picture.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'themes') diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index bad2fd60b..e0472ca51 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -20,15 +20,13 @@ {if count($current.unique_derivatives)>1} {footer_script}{literal} -function changeImgSrc(url,typeSave,typeMap,typeDisplay) +function changeImgSrc(url,typeSave,typeMap) { var theImg = document.getElementById("theMainImage"); if (theImg) { theImg.removeAttribute("width");theImg.removeAttribute("height"); theImg.src = url; - var elt = document.getElementById("derivativeSwitchLink"); - /* if (elt) elt.innerHTML = typeDisplay; */ theImg.useMap = "#map"+typeMap; } document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; @@ -53,7 +51,7 @@ function toggleDerivativeSwitchBox()  {'Photo sizes'|@translate}