ce.dom.style.height = '';
}, this, { single: true} );
ce.setHeight(h);
+ ce.dom.scrollTop = 0;
},
/**
* Collapse the navbar pulldown
*/
collapse : function()
{
-
- if (ce.hasClass('collapsing')) {
+ var ce = this.el.select('.navbar-collapse',true).first();
+
+ if (ce.hasClass('collapsing') || ce.hasClass('collapse') ) {
+ // it's collapsed or collapsing..
return;
}
- var ce = this.el.select('.navbar-collapse',true).first();
ce.removeClass('in'); // old...
ce.setHeight(ce.getHeight());
ce.removeClass('show');