diff options
author | mistic100 <mistic@piwigo.org> | 2015-04-12 09:55:51 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2015-04-12 09:55:51 +0000 |
commit | 90809a118552eff2b03f46393c978377e7894140 (patch) | |
tree | 39d8fe19e0f2cbc70339d3e375187dc7493c9d14 /themes/default/template/picture.tpl | |
parent | 654a36607cee8fef7a330157195765d42a3f745f (diff) |
invalid js in SwitchBox
git-svn-id: http://piwigo.org/svn/trunk@31080 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/default/template/picture.tpl | 4 |
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} |