From c3c807b553ab42d0486af45bae71aac411f48e7c Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 8 Jul 2013 23:14:14 +0000 Subject: - on picture.php do not set the prefetch link if already set by a plugin - picture.tpl set the derivative size checkbox id to the correct name git-svn-id: http://piwigo.org/svn/trunk@23882 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/picture.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/default/template') diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index f41b573e3..debe06dd2 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -31,7 +31,7 @@ function changeImgSrc(url,typeSave,typeMap) theImg.useMap = "#map"+typeMap; } jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); - jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); + jQuery('#derivativeChecked'+typeMap).css('visibility','visible'); document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } (SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox"); @@ -42,7 +42,7 @@ function changeImgSrc(url,typeSave,typeMap)
{'Photo sizes'|@translate}
{foreach from=$current.unique_derivatives item=derivative key=derivative_type} - get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ + get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ {$derivative->get_type()|@translate} ({$derivative->get_size_hr()})
-- cgit v1.2.3