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/index.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 'themes/default/template/index.tpl')
-rw-r--r-- | themes/default/template/index.tpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index e8009b9d2..81802b16f 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -26,7 +26,7 @@ {/if} {/foreach} </div> - {footer_script}(SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script} + {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script} {/strip}</li> {/if} {if !empty($image_derivatives)} @@ -43,7 +43,7 @@ {/if} {/foreach} </div> - {footer_script}(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script} + {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script} {/strip}</li> {/if} @@ -109,7 +109,7 @@ <span{if !$view.SELECTED} style="visibility:hidden"{/if}>✔ </span><a href="{$view.VALUE}">{$view.CONTENT}</a> {/foreach} </div> - {footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script} + {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script} </div> {/if} |