summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/jscripts
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2015-01-09 11:11:01 +0000
committerramon <ramongomez@us.es>2015-01-09 11:11:01 +0000
commit71cc14f7bb184d54bd2cad79b00056a73277afff (patch)
tree12d78e47a98383dc44bf92f3fb2462f605797b32 /admin/WebConsole/jscripts
parent5715a1473a65c231efaf16c698d7cf81776ae132 (diff)
#643: Se soporta introducir caracteres ":" en la dirección MAC.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4467 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/jscripts')
-rw-r--r--admin/WebConsole/jscripts/validators.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/jscripts/validators.js b/admin/WebConsole/jscripts/validators.js
index b4f40801..4c1df8b6 100644
--- a/admin/WebConsole/jscripts/validators.js
+++ b/admin/WebConsole/jscripts/validators.js
@@ -60,10 +60,10 @@ function validate_ipadress_notnull(value) {
return validate_ipadress(value) && validate_notnull(value);
}
-// Validar direccion MAC
+// Validar direccion MAC (sin contar caracteres ":").
function validate_macaddress(value) {
var regex = '^([0-9a-fA-F]){12}$'
- return validate_expr(value, regex);
+ return validate_expr(value.replace(/:/g,''), regex);
}
function validate_macaddress_notnull(value) {