luci-base: form.js: disable write/remove actions for DummyValue widgets
authorJo-Philipp Wich <jo@mein.io>
Wed, 21 Aug 2019 10:50:07 +0000 (12:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 13:28:16 +0000 (15:28 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index cb6bf7929a1536cbb41f77f04314454056b3720a..2d1d6960baae3fd753be0b9f77f3056aff107318 100644 (file)
@@ -1635,6 +1635,9 @@ var CBIDummyValue = CBIValue.extend({
                        hiddenEl.render()
                ]);
        },
+
+       remove: function() {},
+       write: function() {}
 });
 
 var CBIButtonValue = CBIValue.extend({