/**
* @class Roo.bootstrap.Form
* @extends Roo.bootstrap.Component
+ * @children Roo.bootstrap.Component
* Bootstrap Form class
* @cfg {String} method GET | POST (default POST)
* @cfg {String} labelAlign top | left (default top)
cls : ''
};
if (this.parent().xtype.match(/^Nav/)) {
- cfg.cls = 'navbar-form navbar-' + this.align;
+ cfg.cls = 'navbar-form form-inline navbar-' + this.align;
}
var target = false;
items.each(function(f){
+
if(f.validate()){
return;
}
+
+ Roo.log('invalid field: ' + f.name);
+
valid = false;
if(!target && f.el.isVisible(true)){
return;
}
- f.hide(true);
+ f.hide();
}, this);
},
return;
}
- f.show(true);
+ f.show();
}, this);
}