diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-09-26 09:36:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 09:36:00 +0200 |
commit | 957a6313bd6371e5afae20573a43f5440948e66e (patch) | |
tree | f91400bded3b1d434fda13d699ec1816d2c4bbb1 /modules/luci-base/htdocs/luci-static/resources/cbi.js | |
parent | 0c3f396b2fbbe691713b6fe598ff41f8235ca20d (diff) | |
parent | 7744ad0075bda689346a3868f36a57c8b53b23c8 (diff) |
Merge pull request #6587 from stokito/typos
luci-base: Fix typos in JsDocs
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/cbi.js')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 3fc6edf29f..38687a1cef 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -370,12 +370,7 @@ function cbi_validate_form(form, errmsg) function cbi_validate_named_section_add(input) { var button = input.parentNode.parentNode.querySelector('.cbi-button-add'); - if (input.value !== '') { - button.disabled = false; - } - else { - button.disabled = true; - } + button.disabled = input.value === ''; } function cbi_validate_reset(form) |