Ignore:
Timestamp:
Apr 12, 2015, 11:55:51 AM (9 years ago)
Author:
mistic100
Message:

invalid js in SwitchBox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/index.tpl

    r27882 r31080  
    2727                        {/foreach}
    2828                </div>
    29                 {footer_script}(SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script}
     29                {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#sortOrderLink", "#sortOrderBox");{/footer_script}
    3030                {/strip}</li>
    3131{/if}
     
    4444                        {/foreach}
    4545                </div>
    46                 {footer_script}(SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script}
     46                {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");{/footer_script}
    4747                {/strip}</li>
    4848{/if}
     
    110110                {/foreach}
    111111        </div>
    112         {footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script}
     112        {footer_script}(window.SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script}
    113113</div>
    114114{/if}
Note: See TracChangeset for help on using the changeset viewer.