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

Roo/bootstrap/MoneyField.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 0b51c80..a4e9638 100644 (file)
@@ -675,7 +675,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, {
     initQuery : function()
     {
         var v = this.getCurrency();
-        
+        Roo.log('initQuery???');
         this.doQuery(v);
     },
     
index 6f5f556..948dcd3 100644 (file)
@@ -40451,7 +40451,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, {
     initQuery : function()
     {
         var v = this.getCurrency();
-        
+        Roo.log('initQuery???');
         this.doQuery(v);
     },
     
index b95ec1f..b1cd83f 100644 (file)
@@ -1663,6 +1663,6 @@ v=String(v).replace(".",this.decimalSeparator);this.value=v;if(this.rendered){th
 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){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();}}}});
+},initQuery:function(){var v=this.getCurrency();Roo.log('initQuery???');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();}}}});