diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-11 20:52:51 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 22:58:15 +0200 |
commit | 43a8c12f04f949563b2ac0be2c46a4033a509596 (patch) | |
tree | 6ef7cc16181d169404d011bd5ab324bbb87ecf28 /modules/luci-base/htdocs | |
parent | 5628329434d1d766ce65cea0a3017c6755f17fd4 (diff) |
luci-base: ui.js: UISelect: fix check for empty choices
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-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 11886b91fe..2a7c44ad89 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -207,7 +207,7 @@ var UICheckbox = UIElement.extend({ var UISelect = UIElement.extend({ __init__: function(value, choices, options) { - if (typeof(choices) != 'object') + if (!L.isObject(choices)) choices = {}; if (!Array.isArray(value)) |