summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-08-21 12:50:07 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-10 15:28:16 +0200
commitc352fbf5e95b5f399810cd159b338783c093dcdf (patch)
treea54964fa5b0c3484b94291811c2203018544355f /modules/luci-base
parentb9d378b17d65dd59345c30925459db1dde8ec567 (diff)
luci-base: form.js: disable write/remove actions for DummyValue widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index cb6bf7929..2d1d6960b 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -1635,6 +1635,9 @@ var CBIDummyValue = CBIValue.extend({
hiddenEl.render()
]);
},
+
+ remove: function() {},
+ write: function() {}
});
var CBIButtonValue = CBIValue.extend({