Changeset 31104


Ignore:
Timestamp:
04/24/15 22:27:59 (4 years ago)
Author:
mistic100
Message:

Merged revision(s) 31080 from trunk:
invalid js in SwitchBox

Location:
branches/2.7/themes/default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/themes/default/js/switchbox.js

    r24612 r31104  
    1818        } 
    1919 
    20         SwitchBox = { 
     20        window.SwitchBox = { 
    2121                push: sbFunc 
    2222        } 
  • branches/2.7/themes/default/template/index.tpl

    r27882 r31104  
    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} 
  • branches/2.7/themes/default/template/picture.tpl

    r29359 r31104  
    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.