Roo/bootstrap/form/Input.js
authorleon <leon@roojs.com>
Thu, 20 Apr 2023 09:28:54 +0000 (17:28 +0800)
committerleon <leon@roojs.com>
Thu, 20 Apr 2023 09:28:54 +0000 (17:28 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/form/Input.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 6ed2b7d..4a79f69 100644 (file)
@@ -935,7 +935,10 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
      */
     markValid : function()
     {
-        Roo.log('MARK VALID');
+        if(this.name == 'release_social_website') {
+            Roo.log('MARK VALID');
+        }
+        
         if(!this.el  || this.preventMark){ // not rendered...
             return;
         }
index 7c8f33c..af0ddd6 100644 (file)
@@ -13208,7 +13208,10 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component,  {
      */
     markValid : function()
     {
-        Roo.log('MARK VALID');
+        if(this.name == 'release_social_website') {
+            Roo.log('MARK VALID');
+        }
+        
         if(!this.el  || this.preventMark){ // not rendered...
             return;
         }
index 4938ee8..4c073dc 100644 (file)
@@ -560,7 +560,7 @@ var d=this.inputEl().dom;if(d.setSelectionRange){d.setSelectionRange(A,B);}else
 this.validate();}},preFocus:function(){if(this.selectOnFocus){this.inputEl().dom.select();}},filterKeys:function(e){var k=e.getKey();if(!Roo.isIE&&(e.isNavKeyPress()||k==e.BACKSPACE||(k==e.DELETE&&e.button==-1))){return;}var c=e.getCharCode(),cc=String.fromCharCode(c);
 if(Roo.isIE&&(e.isSpecialKey()||!cc)){return;}if(!this.maskRe.test(cc)){e.stopEvent();}},clearInvalid:function(){if(!this.el||this.preventMark){return;}this.el.removeClass([this.invalidClass,'is-invalid']);if(this.hasFeedback&&this.inputType!='hidden'){var A=this.el.select('.form-control-feedback',true).first();
 if(A){this.el.select('.form-control-feedback',true).first().removeClass(this.invalidFeedbackClass);A.update('');}}if(this.indicator){this.indicator.removeClass('visible');this.indicator.addClass(this.indicatorpos=='right'?'hidden':'invisible');}this.fireEvent('valid',this);
-},markValid:function(){Roo.log('MARK VALID');if(!this.el||this.preventMark){return;}this.el.removeClass([this.invalidClass,this.validClass]);this.inputEl().removeClass(['is-valid','is-invalid']);var A=this.el.select('.form-control-feedback',true).first();
+},markValid:function(){if(this.name=='release_social_website'){Roo.log('MARK VALID');}if(!this.el||this.preventMark){return;}this.el.removeClass([this.invalidClass,this.validClass]);this.inputEl().removeClass(['is-valid','is-invalid']);var A=this.el.select('.form-control-feedback',true).first();
 if(A){this.el.select('.form-control-feedback',true).first().removeClass([this.invalidFeedbackClass,this.validFeedbackClass]);}if(this.indicator){this.indicator.removeClass('visible');this.indicator.addClass(this.indicatorpos=='right'?'hidden':'invisible');
 }if(this.disabled){return;}if(this.allowBlank&&!this.getRawValue().length){return;}if(Roo.bootstrap.version==3){this.el.addClass(this.validClass);}else{this.inputEl().addClass('is-valid');}if(this.hasFeedback&&this.inputType!='hidden'&&(this.getValue().length||this.forceFeedback)){var A=this.el.select('.form-control-feedback',true).first();
 if(A){this.el.select('.form-control-feedback',true).first().removeClass([this.invalidFeedbackClass,this.validFeedbackClass]);this.el.select('.form-control-feedback',true).first().addClass([this.validFeedbackClass]);A.update('');}}this.fireEvent('valid',this);