Changeset 25979 for extensions/AdminTools/template/public_controller.js
- Timestamp:
- Dec 17, 2013, 12:14:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/template/public_controller.js
r25924 r25979 6 6 7 7 var $ato = $('#ato_header'), 8 $ato_closed = $('#ato_header_closed'); 8 $ato_closed = $('#ato_header_closed'), 9 ato_height = 28; // normal height, real height conputed on init() 9 10 10 11 // move to whole page down or up 11 12 function moveBody(dir, anim) { 12 var operator = dir=='show' ? '+=' : '-=', 13 ato_height = $ato.height(); 13 var operator = dir=='show' ? '+=' : '-='; 14 14 15 15 if (anim) { … … 103 103 this.init = function(urlSelf) { 104 104 $('body').prepend($ato); // ensure the bar is at the begining 105 106 $ato.show(); 107 ato_height = $ato.height(); 105 108 106 109 if ('localStorage' in window) { … … 110 113 111 114 if (window.localStorage.ato_panel_open == "true") { 112 $ato.show();113 115 moveBody('show', false); 114 116 } 115 117 else { 118 $ato.hide(); 116 119 $ato_closed.show(); 117 120 } … … 264 267 transition: 'none', 265 268 width: 500, 269 maxWidth: '100%', 266 270 top: 50, 267 271 title: $ato_edit.attr('title'),
Note: See TracChangeset
for help on using the changeset viewer.