git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4f47035
)
Revert "luci-base: override the load() function to return boolean for FlagValue"
author
Paul Donald
<redacted>
Wed, 30 Apr 2025 20:21:01 +0000
(22:21 +0200)
committer
Paul Donald
<redacted>
Wed, 30 Apr 2025 20:21:01 +0000
(22:21 +0200)
This reverts commit
1355a6fa253d765140f5571354939d2e93e6d967
.
Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/form.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/form.js
b/modules/luci-base/htdocs/luci-static/resources/form.js
index cccfcdda929067f9db85895fdb3519f483374b8d..c9af17f1b37e1e71fa3610c3d0d8895d9b2332d8 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/form.js
@@
-4199,19
+4199,6
@@
const CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */
* @default 'ℹ️';
*/
- /**
- * Coerce the various forms of a 'boolean' string into a true/false value.
- *
- * @override
- */
- load() {
- //
- let load = this.super('load', arguments);
- if (typeof(load) == 'string')
- load = ['1', 'on', 'true', 'yes', 'enabled'].includes(load.toLowerCase());
- return load;
- },
-
/** @private */
renderWidget(section_id, option_index, cfgvalue) {
let tooltip = null;
git clone https://git.99rst.org/PROJECT