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>
(cherry picked from commit ee36066947
)
This commit is contained in:
parent
039ef1f4de
commit
4193a20d5e
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ var UIDynamicList = UIElement.extend({
|
||||||
addItem: function(dl, value, text, flash) {
|
addItem: function(dl, value, text, flash) {
|
||||||
var exists = false,
|
var exists = false,
|
||||||
new_item = E('div', { 'class': flash ? 'item flash' : 'item', 'tabindex': 0 }, [
|
new_item = E('div', { 'class': flash ? 'item flash' : 'item', 'tabindex': 0 }, [
|
||||||
E('span', {}, text || value),
|
E('span', {}, [ text || value ]),
|
||||||
E('input', {
|
E('input', {
|
||||||
'type': 'hidden',
|
'type': 'hidden',
|
||||||
'name': this.options.name,
|
'name': this.options.name,
|
||||||
|
|
Loading…
Reference in a new issue