projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: cbi: fix button handling for dynamic lists
[project/luci.git]
/
modules
/
luci-base
/
htdocs
/
luci-static
/
resources
/
cbi.js
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index
26fd924
..
b285ee2
100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/cbi.js
@@
-592,6
+592,7
@@
function cbi_combobox(id, values, def, man, focus) {
var obj = document.getElementById(id)
var sel = document.createElement("select");
sel.id = selid;
var obj = document.getElementById(id)
var sel = document.createElement("select");
sel.id = selid;
+ sel.index = obj.index;
sel.className = obj.className.replace(/cbi-input-text/, 'cbi-input-select');
if (obj.nextSibling) {
sel.className = obj.className.replace(/cbi-input-text/, 'cbi-input-select');
if (obj.nextSibling) {
@@
-925,14
+926,14
@@
function cbi_dynlist_init(parent, datatype, optional, choices)
input.value = '';
cbi_dynlist_keydown({
input.value = '';
cbi_dynlist_keydown({
- target:
se
,
+ target:
input
,
keyCode: 8
});
}
else
{
cbi_dynlist_keydown({
keyCode: 8
});
}
else
{
cbi_dynlist_keydown({
- target:
se
,
+ target:
input
,
keyCode: 13
});
}
keyCode: 13
});
}