aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/picture.tpl
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2015-04-24 20:27:59 +0000
committermistic100 <mistic@piwigo.org>2015-04-24 20:27:59 +0000
commit42c04a1cb18b52b2a828fded23e413356fcf37a8 (patch)
tree72b8f128159bb48c19465ff3c3c8da16b50b449c /themes/default/template/picture.tpl
parentcc9ac40fce3cada5013dcb2dd1e6edddd07c6a54 (diff)
Merged revision(s) 31080 from trunk:
invalid js in SwitchBox git-svn-id: http://piwigo.org/svn/branches/2.7@31104 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/default/template/picture.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index 9a71ca889..733cefcf8 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -34,7 +34,7 @@ function changeImgSrc(url,typeSave,typeMap)
jQuery('#derivativeChecked'+typeMap).css('visibility','visible');
document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}';
}
-(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");
+(window.SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");
{/literal}{/footer_script}
{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="pwg-icon pwg-icon-sizes"></span><span class="pwg-button-text">{'Photo sizes'|@translate}</span>
@@ -293,7 +293,7 @@ function setPrivacyLevel(id, level){
}
);
}
-(SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox");
+(window.SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox");
{/strip}{/footer_script}
<div id="privacyLevelBox" class="switchBox" style="display:none">
{foreach from=$available_permission_levels item=label key=level}