From 08f408c1bab98126b5eb9c948d2b977c59beac7c Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 25 Apr 2018 16:32:08 +0800 Subject: [PATCH] Roo/bootstrap/MoneyField.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/MoneyField.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Roo/bootstrap/MoneyField.js b/Roo/bootstrap/MoneyField.js index 0b51c807af..a4e9638d3c 100644 --- a/Roo/bootstrap/MoneyField.js +++ b/Roo/bootstrap/MoneyField.js @@ -675,7 +675,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { initQuery : function() { var v = this.getCurrency(); - + Roo.log('initQuery???'); this.doQuery(v); }, diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6f5f5568a8..948dcd3dc4 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -40451,7 +40451,7 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { initQuery : function() { var v = this.getCurrency(); - + Roo.log('initQuery???'); this.doQuery(v); }, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index b95ec1f7ef..b1cd83fe3d 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -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();}}}}); -- 2.39.2