libs/web: fix undesired autofocus of DynamicList widget
This commit is contained in:
parent
6ae669da06
commit
161218a576
1 changed files with 4 additions and 4 deletions
|
@ -55,9 +55,9 @@ var cbi_validators = {
|
||||||
(RegExp.$2 >= 0) && (RegExp.$2 <= 255) &&
|
(RegExp.$2 >= 0) && (RegExp.$2 <= 255) &&
|
||||||
(RegExp.$3 >= 0) && (RegExp.$3 <= 255) &&
|
(RegExp.$3 >= 0) && (RegExp.$3 <= 255) &&
|
||||||
(RegExp.$4 >= 0) && (RegExp.$4 <= 255) &&
|
(RegExp.$4 >= 0) && (RegExp.$4 <= 255) &&
|
||||||
((RegExp.$6.indexOf('.') < 0)
|
((RegExp.$6.indexOf('.') < 0)
|
||||||
? ((RegExp.$6 >= 0) && (RegExp.$6 <= 32))
|
? ((RegExp.$6 >= 0) && (RegExp.$6 <= 32))
|
||||||
: (cbi_validators.ip4addr(RegExp.$6)))
|
: (cbi_validators.ip4addr(RegExp.$6)))
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -724,7 +724,7 @@ function cbi_dynlist_init(name, respath, datatype, optional, choices)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cbi_dynlist_redraw(0, -1, -1);
|
cbi_dynlist_redraw(-1, -1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Hijacks the CBI form to send via XHR (requires Prototype)
|
//Hijacks the CBI form to send via XHR (requires Prototype)
|
||||||
|
|
Loading…
Reference in a new issue