Merge branch 'v3'
This commit is contained in:
commit
4ee6e58994
@ -4203,17 +4203,15 @@
|
||||
return Header.previousOffset = offsetY;
|
||||
},
|
||||
setBarPosition: function(bottom) {
|
||||
var args;
|
||||
|
||||
Header.barPositionToggler.checked = bottom;
|
||||
$.event('CloseMenu');
|
||||
if (bottom) {
|
||||
$.addClass(doc, 'bottom-header');
|
||||
$.rmClass(doc, 'top-header');
|
||||
return Header.bar.parentNode.className = 'bottom';
|
||||
} else {
|
||||
$.addClass(doc, 'top-header');
|
||||
$.rmClass(doc, 'bottom-header');
|
||||
return Header.bar.parentNode.className = 'top';
|
||||
}
|
||||
args = bottom ? ['bottom-header', 'top-header', 'bottom', 'after'] : ['top-header', 'bottom-header', 'top', 'add'];
|
||||
$.addClass(doc, args[0]);
|
||||
$.rmClass(doc, args[1]);
|
||||
Header.bar.parentNode.className = args[2];
|
||||
return $[args[3]](Header.bar, Header.notify);
|
||||
},
|
||||
toggleBarPosition: function() {
|
||||
$.cb.checked.call(this);
|
||||
|
||||
@ -4228,17 +4228,15 @@
|
||||
return Header.previousOffset = offsetY;
|
||||
},
|
||||
setBarPosition: function(bottom) {
|
||||
var args;
|
||||
|
||||
Header.barPositionToggler.checked = bottom;
|
||||
$.event('CloseMenu');
|
||||
if (bottom) {
|
||||
$.addClass(doc, 'bottom-header');
|
||||
$.rmClass(doc, 'top-header');
|
||||
return Header.bar.parentNode.className = 'bottom';
|
||||
} else {
|
||||
$.addClass(doc, 'top-header');
|
||||
$.rmClass(doc, 'bottom-header');
|
||||
return Header.bar.parentNode.className = 'top';
|
||||
}
|
||||
args = bottom ? ['bottom-header', 'top-header', 'bottom', 'after'] : ['top-header', 'bottom-header', 'top', 'add'];
|
||||
$.addClass(doc, args[0]);
|
||||
$.rmClass(doc, args[1]);
|
||||
Header.bar.parentNode.className = args[2];
|
||||
return $[args[3]](Header.bar, Header.notify);
|
||||
},
|
||||
toggleBarPosition: function() {
|
||||
$.cb.checked.call(this);
|
||||
|
||||
@ -250,14 +250,22 @@ Header =
|
||||
setBarPosition: (bottom) ->
|
||||
Header.barPositionToggler.checked = bottom
|
||||
$.event 'CloseMenu'
|
||||
if bottom
|
||||
$.addClass doc, 'bottom-header'
|
||||
$.rmClass doc, 'top-header'
|
||||
Header.bar.parentNode.className = 'bottom'
|
||||
else
|
||||
$.addClass doc, 'top-header'
|
||||
$.rmClass doc, 'bottom-header'
|
||||
Header.bar.parentNode.className = 'top'
|
||||
args = if bottom then [
|
||||
'bottom-header'
|
||||
'top-header'
|
||||
'bottom'
|
||||
'after'
|
||||
] else [
|
||||
'top-header'
|
||||
'bottom-header'
|
||||
'top'
|
||||
'add'
|
||||
]
|
||||
|
||||
$.addClass doc, args[0]
|
||||
$.rmClass doc, args[1]
|
||||
Header.bar.parentNode.className = args[2]
|
||||
$[args[3]] Header.bar, Header.notify
|
||||
|
||||
toggleBarPosition: ->
|
||||
$.cb.checked.call @
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user