Changeset 31080


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

invalid js in SwitchBox

Location:
trunk/themes/default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/js/switchbox.js

    r24612 r31080  
    1818        }
    1919
    20         SwitchBox = {
     20        window.SwitchBox = {
    2121                push: sbFunc
    2222        }
  • 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}
  • trunk/themes/default/template/picture.tpl

    r29359 r31080  
    3535        document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}';
    3636}
    37 (SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");
     37(window.SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox");
    3838{/literal}{/footer_script}
    3939{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     
    294294        );
    295295}
    296 (SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox");
     296(window.SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox");
    297297{/strip}{/footer_script}
    298298                        <div id="privacyLevelBox" class="switchBox" style="display:none">
Note: See TracChangeset for help on using the changeset viewer.