X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FPhoneInput.js;h=36171e800a5f5789ebdefdcc5affe4cad0dede06;hb=2fe30af23f3229a9bcf1597356b614259d103710;hp=ae99b8850dc9e46315e468aec7ff0a2f15a80812;hpb=0bea371b9f7c13c4f6c79b1117a7fdbbb5dd7385;p=roojs1 diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index ae99b8850d..36171e800a 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -295,7 +295,6 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.list.on('mouseover', this.onViewOver, this); this.list.on('mousemove', this.onViewMove, this); - // this.inputEl().on("keyup", this.onKeyUp, this); this.inputEl().on("keypress", this.onKeyPress, this); this.tpl = '
  • {name} +{dialCode}
  • '; @@ -546,28 +545,13 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { return this.el.select('input.hidden-tel-input',true).first(); }, - onKeyUp : function(e){ - - if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ - e.stopEvent(); - } - - Roo.log(this.getValue()); - - this.setValue(this.getValue()); - }, - onKeyPress : function(e){ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); } - Roo.log(this.getValue()); - this.setValue(this.getValue()); } - - }); \ No newline at end of file