diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-30 13:33:13 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-30 13:33:46 +0200 |
commit | 8a947ea550f7ab1cec89d1b1a8acf57be55e7199 (patch) | |
tree | 9b00b32397cab8a4919a844c3769a4d47763ee09 /modules/luci-base/htdocs/luci-static/resources | |
parent | 3880c3f22fd5310f6f5c49ac49df89ce39552ce2 (diff) |
luci-base: ui.js: do not save invalid dynlist values
Fixes: 3880c3f22 ("luci-base: ui.js: save filled out but not added dynlist items on submit")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 93e947d01..f6a964fb1 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -1334,6 +1334,7 @@ var UIDynamicList = UIElement.extend({ v.push(items[i].value); if (input && input.value != null && input.value.match(/\S/) && + input.classList.contains('cbi-input-invalid') == false && v.filter(function(s) { return s == input.value }).length == 0) v.push(input.value); |