X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_FieldLabel.js.html;h=212c2b51fa56a9c337c597d30fcf93aa6010a36e;hb=4d8a641dc3f2d08ef1934fd419e6d8d6689dd203;hp=b495920586d5aa477450080d06ff7088b9dd02c2;hpb=1be22e193a50426240865e8da11886d9d9ec935d;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_FieldLabel.js.html b/docs/symbols/src/Roo_bootstrap_FieldLabel.js.html
index b495920586..212c2b51fa 100644
--- a/docs/symbols/src/Roo_bootstrap_FieldLabel.js.html
+++ b/docs/symbols/src/Roo_bootstrap_FieldLabel.js.html
@@ -56,7 +56,7 @@
var cfg = {
tag : this.tag,
- cls : this.cls,
+ cls : 'roo-bootstrap-field-label ' + this.cls,
for : this.for,
cn : [
{
@@ -86,35 +86,13 @@
markValid : function(){
- if(!this.el || this.preventMark){ return;
- }
-
- this.el.removeClass([this.invalidClass, this.validClass]);
-
- var feedback = this.el.select('.form-control-feedback', true).first();
-
- if(feedback){
- this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
- }
-
- if(this.disabled || this.allowBlank){
- return;
- }
+ markValid : function()
+ {
+ this.iconEl.show();
- this.el.addClass(this.validClass);
+ this.iconEl.removeClass(this.invalidClass);
- if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank && (this.getValue().length || this.forceFeedback)){
-
- var feedback = this.el.select('.form-control-feedback', true).first();
-
- if(feedback){
- this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
- this.el.select('.form-control-feedback', true).first().addClass([this.validFeedbackClass]);
- }
-
- }
+ this.iconEl.addClass(this.validClass);
this.fireEvent('valid', this);
},
@@ -125,38 +103,11 @@
*/
markInvalid : function(msg)
{
- if(!this.el || this.preventMark){ return;
- }
-
- this.el.removeClass([this.invalidClass, this.validClass]);
-
- var feedback = this.el.select('.form-control-feedback', true).first();
-
- if(feedback){
- this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
- }
-
- if(this.disabled || this.allowBlank){
- return;
- }
+ this.iconEl.show();
- this.el.addClass(this.invalidClass);
+ this.iconEl.removeClass(this.validClass);
- if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){
-
- var feedback = this.el.select('.form-control-feedback', true).first();
-
- if(feedback){
- this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
-
- if(this.getValue().length || this.forceFeedback){
- this.el.select('.form-control-feedback', true).first().addClass([this.invalidFeedbackClass]);
- }
-
- }
-
- }
+ this.iconEl.addClass(this.invalidClass);
this.fireEvent('invalid', this, msg);
}