luci-base: cbi: fix button handling for dynamic lists
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
3749c45f80
commit
3b86fd1d1b
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
sel.index = obj.index;
|
||||
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({
|
||||
target: se,
|
||||
target: input,
|
||||
keyCode: 8
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
cbi_dynlist_keydown({
|
||||
target: se,
|
||||
target: input,
|
||||
keyCode: 13
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue