projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e1a74
)
Roo/bootstrap/PhoneInput.js
author
john
<john@roojs.com>
Mon, 29 Oct 2018 08:16:14 +0000
(16:16 +0800)
committer
john
<john@roojs.com>
Mon, 29 Oct 2018 08:16:14 +0000
(16:16 +0800)
Roo/bootstrap/PhoneInput.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/PhoneInput.js
b/Roo/bootstrap/PhoneInput.js
index
321ccb2
..
228b274
100644
(file)
--- a/
Roo/bootstrap/PhoneInput.js
+++ b/
Roo/bootstrap/PhoneInput.js
@@
-549,17
+549,7
@@
Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
var k = e.getKey();
var c = e.getCharCode();
-
- if(
- (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') &&
- this.allowed.indexOf(String.fromCharCode(c)) === -1
- ){
- e.stopEvent();
- }
-
- // if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){
- // return;
- // }
+
if(this.allowed.indexOf(String.fromCharCode(c)) === -1){
e.stopEvent();
}