projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6ae669d
)
libs/web: fix undesired autofocus of DynamicList widget
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Dec 2011 02:56:03 +0000
(
02:56
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 20 Dec 2011 02:56:03 +0000
(
02:56
+0000)
libs/web/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/libs/web/htdocs/luci-static/resources/cbi.js
b/libs/web/htdocs/luci-static/resources/cbi.js
index 3826753ed460000b0452c2d562bcba05a568b695..7e387e77a9e92e7baa16f2fd74960022eead8360 100644
(file)
--- 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.$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;
}
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)