From: leon Date: Wed, 1 Mar 2023 04:00:36 +0000 (+0800) Subject: Roo/bootstrap/form/Input.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=f3fc31cc1327ba8710b4b8d79e5bce0c5eac1f00 Roo/bootstrap/form/Input.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/form/Input.js b/Roo/bootstrap/form/Input.js index d6657a8544..bc641e3073 100644 --- a/Roo/bootstrap/form/Input.js +++ b/Roo/bootstrap/form/Input.js @@ -819,6 +819,7 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component, { if(this.name == 'release_content') { Roo.log('CONTENT GET VALUE'); Roo.log(this.inputEl()); + Roo.log(this); } return v; }, diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index a81d7f5305..9fe428cc88 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -13092,6 +13092,7 @@ Roo.extend(Roo.bootstrap.form.Input, Roo.bootstrap.Component, { if(this.name == 'release_content') { Roo.log('CONTENT GET VALUE'); Roo.log(this.inputEl()); + Roo.log(this); } return v; }, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 0ebb90386a..5dff433768 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -554,8 +554,8 @@ return true;}this.markInvalid();return false;},validateValue:function(A){if(this }return true;},fireKey:function(e){if(e.isNavKeyPress()){this.fireEvent("specialkey",this,e);}},focus:function(A){if(this.rendered){this.inputEl().focus();if(A===true){this.inputEl().dom.select();}}return this;},onFocus:function(){if(!Roo.isOpera&&this.focusClass){} if(!this.hasFocus){this.hasFocus=true;this.startValue=this.getValue();this.fireEvent("focus",this);}},beforeBlur:Roo.emptyFn,onBlur:function(){this.beforeBlur();if(!Roo.isOpera&&this.focusClass){}this.hasFocus=false;if(this.validationEvent!==false&&this.validateOnBlur&&this.validationEvent!="blur"){this.validate(); }var v=this.getValue();if(String(v)!==String(this.startValue)){this.fireEvent('change',this,v,this.startValue);}this.fireEvent("blur",this);},onChange:function(e){var v=this.getValue();if(String(v)!==String(this.startValue)){this.fireEvent('change',this,v,this.startValue); -}},reset:function(){this.setValue(this.originalValue);this.validate();},getName:function(){return this.name;},getValue:function(){var v=this.inputEl().getValue();if(this.name=='release_content'){Roo.log('CONTENT GET VALUE');Roo.log(this.inputEl());}return v; -},getRawValue:function(){var v=this.inputEl().getValue();return v;},setRawValue:function(v){return this.inputEl().dom.value=(v===null||v===undefined?'':v);},selectText:function(A,B){var v=this.getRawValue();if(v.length>0){A=A===undefined?0:A;B=B===undefined?v.length:B; +}},reset:function(){this.setValue(this.originalValue);this.validate();},getName:function(){return this.name;},getValue:function(){var v=this.inputEl().getValue();if(this.name=='release_content'){Roo.log('CONTENT GET VALUE');Roo.log(this.inputEl());Roo.log(this); +}return v;},getRawValue:function(){var v=this.inputEl().getValue();return v;},setRawValue:function(v){return this.inputEl().dom.value=(v===null||v===undefined?'':v);},selectText:function(A,B){var v=this.getRawValue();if(v.length>0){A=A===undefined?0:A;B=B===undefined?v.length:B; var d=this.inputEl().dom;if(d.setSelectionRange){d.setSelectionRange(A,B);}else if(d.createTextRange){var C=d.createTextRange();C.moveStart("character",A);C.moveEnd("character",v.length-B);C.select();}}},setValue:function(v){this.value=v;if(this.rendered){this.inputEl().dom.value=(v===null||v===undefined?'':v); 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'&&!this.allowBlank){var A=this.el.select('.form-control-feedback',true).first();