projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aaea50d
)
Roo/bootstrap/PhoneInput.js
author
john
<john@roojs.com>
Mon, 29 Oct 2018 08:12:22 +0000
(16:12 +0800)
committer
john
<john@roojs.com>
Mon, 29 Oct 2018 08:12:22 +0000
(16:12 +0800)
Roo/bootstrap/PhoneInput.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/PhoneInput.js
b/Roo/bootstrap/PhoneInput.js
index
82651f0
..
d417149
100644
(file)
--- a/
Roo/bootstrap/PhoneInput.js
+++ b/
Roo/bootstrap/PhoneInput.js
@@
-553,7
+553,7
@@
Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
Roo.log(e.getCharCode());
if(
Roo.log(e.getCharCode());
if(
-
(String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-')
&&
+
[",", ".", "n"].indexOf(String.fromCharCode(c)) > -1
&&
this.allowed.indexOf(String.fromCharCode(c)) === -1
){
e.stopEvent();
this.allowed.indexOf(String.fromCharCode(c)) === -1
){
e.stopEvent();