diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-12-04 16:08:40 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-12-04 16:09:23 +0100 |
commit | ee360669474ddc7d94dd2853b2411da929fb5593 (patch) | |
tree | feb97311dc0fdcbe234584911d0eed79cb45adc2 /modules/luci-base/htdocs/luci-static | |
parent | 0eb2326c8ef8fa0aa28b4b0b1949c29c36dc8782 (diff) |
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>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 1a9504b5d3..faf05211db 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -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, |