luci-base: ui.js: properly escape dynlist items for rendering
Ref: https://forum.openwrt.org/t/luci-theme-openwrt-reports-error/49736 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
0eb2326c8e
commit
ee36066947
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ var UIDynamicList = UIElement.extend({
|
|||
addItem: function(dl, value, text, flash) {
|
||||
var exists = false,
|
||||
new_item = E('div', { 'class': flash ? 'item flash' : 'item', 'tabindex': 0 }, [
|
||||
E('span', {}, text || value),
|
||||
E('span', {}, [ text || value ]),
|
||||
E('input', {
|
||||
'type': 'hidden',
|
||||
'name': this.options.name,
|
||||
|
|
Loading…
Reference in a new issue