diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-20 02:56:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-20 02:56:03 +0000 |
commit | 161218a576672ad01dd29796da780fa211b28c9c (patch) | |
tree | da56b23e70b2ef83876f0319c85e1efaf2cceea5 /libs/web | |
parent | 6ae669da0676b77d6ed101f79cbd4cff1eec7616 (diff) |
libs/web: fix undesired autofocus of DynamicList widget
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/htdocs/luci-static/resources/cbi.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index 3826753ed..7e387e77a 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -55,9 +55,9 @@ var cbi_validators = { (RegExp.$2 >= 0) && (RegExp.$2 <= 255) && (RegExp.$3 >= 0) && (RegExp.$3 <= 255) && (RegExp.$4 >= 0) && (RegExp.$4 <= 255) && - ((RegExp.$6.indexOf('.') < 0) - ? ((RegExp.$6 >= 0) && (RegExp.$6 <= 32)) - : (cbi_validators.ip4addr(RegExp.$6))) + ((RegExp.$6.indexOf('.') < 0) + ? ((RegExp.$6 >= 0) && (RegExp.$6 <= 32)) + : (cbi_validators.ip4addr(RegExp.$6))) ; } @@ -724,7 +724,7 @@ function cbi_dynlist_init(name, respath, datatype, optional, choices) return false; } - cbi_dynlist_redraw(0, -1, -1); + cbi_dynlist_redraw(-1, -1, -1); } //Hijacks the CBI form to send via XHR (requires Prototype) |