aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/index.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/index.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 'themes/default/template/index.tpl')
-rw-r--r--themes/default/template/index.tpl6
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}>&#x2714; </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}