diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-19 17:20:50 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-19 17:21:06 +0100 |
commit | 3b86fd1d1b690b6757aa47fe13bd9c381e6e7cc2 (patch) | |
tree | 5cf645ed7d619d6846f70a18b52a8fc18f942467 /modules/luci-base/htdocs | |
parent | 3749c45f80a8613b7d0d1f7fc4f82531de5db8ce (diff) |
luci-base: cbi: fix button handling for dynamic lists
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 26fd92471..b285ee26c 100644 --- 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; + 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 }); } |