projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15824dd
)
Roo/bootstrap/PhoneInput.js
author
john
<john@roojs.com>
Mon, 29 Oct 2018 08:19:46 +0000
(16:19 +0800)
committer
john
<john@roojs.com>
Mon, 29 Oct 2018 08:19:46 +0000
(16:19 +0800)
Roo/bootstrap/PhoneInput.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/PhoneInput.js
b/Roo/bootstrap/PhoneInput.js
index
3c49035
..
b6bbea4
100644
(file)
--- a/
Roo/bootstrap/PhoneInput.js
+++ b/
Roo/bootstrap/PhoneInput.js
@@
-557,6
+557,17
@@
Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
this.setValue(this.getValue());
},
+ onKeyUp : 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