summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-24 07:59:04 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-24 07:59:04 +0200
commit0068c3bd49eec03b70679f8d7787bcfe104492a9 (patch)
tree054244b8d0c5d4320d68ddcabdf50ea77fac2733 /modules/luci-base/htdocs/luci-static
parent4d3d23b5e986ddd99269c07286e1e8967033c274 (diff)
luci-base: form.js: allow overriding remove action in Table/GridSections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 07cacb324..372773474 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -1211,10 +1211,7 @@ var CBITableSection = CBITypedSection.extend({
E('button', {
'title': btn_title || _('Delete'),
'class': 'cbi-button cbi-button-remove',
- 'click': L.ui.createHandlerFn(this, function(sid, ev) {
- this.map.data.remove(config_name, sid);
- return this.map.save(null, true);
- }, section_id)
+ 'click': L.ui.createHandlerFn(this, 'handleRemove', section_id)
}, [ btn_title || _('Delete') ])
);
}