roojs-bootstrap.js
authoredward <edward@roojs.com>
Wed, 25 Apr 2018 08:30:55 +0000 (16:30 +0800)
committeredward <edward@roojs.com>
Wed, 25 Apr 2018 08:30:55 +0000 (16:30 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 29cb091..6f5f556 100644 (file)
@@ -40431,6 +40431,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, {
     
     onCurrencyKeyUp : function(e)
     {
+        Roo.log('on currency keyup');
         if(!e.isSpecialKey()){
             this.lastKey = e.getKey();
             this.dqTask.delay(this.queryDelay);
index 9a8efaa..b95ec1f 100644 (file)
@@ -1662,7 +1662,7 @@ v=String(v).replace(".",this.decimalSeparator);this.value=v;if(this.rendered){th
 }if(B<this.minValue){this.markInvalid(String.format(this.minText,this.minValue));return false;}if(B>this.maxValue){this.markInvalid(String.format(this.maxText,this.maxValue));return false;}return true;},validate:function(){if(this.disabled){this.markValid();
 return true;}var A=this.getCurrency();if(this.validateValue(this.getRawValue())&&A.length){this.markValid();return true;}this.markInvalid();return false;},getName:function(){return this.name;},beforeBlur:function(){if(!this.castInt){return;}var v=this.parseValue(this.getRawValue());
 if(v){this.setValue(v);}},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);},onCurrencyKeyUp:function(e){if(!e.isSpecialKey()){this.lastKey=e.getKey();this.dqTask.delay(this.queryDelay);}},inputEl:function(){return this.el.select('.roo-money-amount-input',true).first();},currencyEl:function(){return this.el.select('.roo-money-currency-input',true).first();
+}this.fireEvent("blur",this);},onCurrencyKeyUp:function(e){Roo.log('on currency keyup');if(!e.isSpecialKey()){this.lastKey=e.getKey();this.dqTask.delay(this.queryDelay);}},inputEl:function(){return this.el.select('.roo-money-amount-input',true).first();},currencyEl:function(){return this.el.select('.roo-money-currency-input',true).first();
 },initQuery:function(){var v=this.getCurrency();this.doQuery(v);},onTypeAhead:function(){if(this.store.getCount()>0){var r=this.store.getAt(0);var A=r.data[this.currencyField];var B=A.length;var C=this.getCurrency().length;if(C!=B){this.setCurrency(A);this.selectText(C,A.length);
 }}},selectText:function(A,B){var v=this.getCurrency();if(v.length>0){A=A===undefined?0:A;B=B===undefined?v.length:B;var d=this.el.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();}}}});