diff options
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/validation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/validation.js b/modules/luci-base/htdocs/luci-static/resources/validation.js index 79ae1d6707..dbf30488c1 100644 --- a/modules/luci-base/htdocs/luci-static/resources/validation.js +++ b/modules/luci-base/htdocs/luci-static/resources/validation.js @@ -535,9 +535,9 @@ var ValidatorFactory = L.Class.extend({ unique: function(subvalidator, subargs) { var ctx = this, - option = findParent(ctx.field, '[data-type][data-name]'), + option = findParent(ctx.field, '[data-widget][data-name]'), section = findParent(option, '.cbi-section'), - query = '[data-type="%s"][data-name="%s"]'.format(option.getAttribute('data-type'), option.getAttribute('data-name')), + query = '[data-widget="%s"][data-name="%s"]'.format(option.getAttribute('data-widget'), option.getAttribute('data-name')), unique = true; section.querySelectorAll(query).forEach(function(sibling) { |