Changeset 26061 for extensions/AdminTools/template/public_controller.js
- Timestamp:
- Dec 20, 2013, 9:14:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/template/public_controller.js
r25979 r26061 3 3 4 4 this.urlWS; 5 this.urlSelf; 5 6 this.multiView; 6 7 … … 101 102 102 103 // attach jquery handlers 103 this.init = function( urlSelf) {104 this.init = function(open) { 104 105 $('body').prepend($ato); // ensure the bar is at the begining 105 106 … … 109 110 if ('localStorage' in window) { 110 111 if (window.localStorage.ato_panel_open == null) { 111 window.localStorage.ato_panel_open = "true";112 } 113 114 if (window.localStorage.ato_panel_open == "true") {112 window.localStorage.ato_panel_open = open; 113 } 114 115 if (window.localStorage.ato_panel_open == 1) { 115 116 moveBody('show', false); 116 117 } … … 151 152 $ato.find('.switcher').on({ 152 153 'change': function() { 153 window.location.href = urlSelf + 'ato_'+ $(this).data('type') +'='+ $(this).val();154 window.location.href = __this.urlSelf + 'ato_'+ $(this).data('type') +'='+ $(this).val(); 154 155 }, 155 156 'click': function(e) { … … 164 165 moveBody('hide', true); 165 166 166 if ('localStorage' in window) window.localStorage.ato_panel_open = "false";167 if ('localStorage' in window) window.localStorage.ato_panel_open = 0; 167 168 e.preventDefault(); 168 169 }); … … 173 174 moveBody('show', true); 174 175 175 if ('localStorage' in window) window.localStorage.ato_panel_open = "true";176 if ('localStorage' in window) window.localStorage.ato_panel_open = 1; 176 177 e.preventDefault(); 177 178 });
Note: See TracChangeset
for help on using the changeset viewer.