summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-01-19 19:47:58 +0200
committerSergey Ponomarev <stokito@gmail.com>2024-01-23 09:29:12 +0200
commita4fd238ab2e5312fe549f76dbe4a63912b43a3fb (patch)
tree5da2d50ec5fbb24dc4f6e2fd75d0d6c9945cdd7f
parentb18960f60057c1915ff48f70431cf076e6cba66b (diff)
luci-base: FlagValue fix type of enabled and disabled properties
The form.Flag checkbox allows to specify a value for enabled/disabled e.g. for a dropbear: o = s.option(form.Flag, 'PasswordAuth'); o.enabled = 'on'; So the property type should be a string but not just a number. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 66ba030208..b1e7d2c393 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -4007,7 +4007,7 @@ var CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */ {
* Sets the input value to use for the checkbox checked state.
*
* @name LuCI.form.FlagValue.prototype#enabled
- * @type number
+ * @type string
* @default 1
*/
@@ -4015,7 +4015,7 @@ var CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */ {
* Sets the input value to use for the checkbox unchecked state.
*
* @name LuCI.form.FlagValue.prototype#disabled
- * @type number
+ * @type string
* @default 0
*/