summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates/list-modules.html
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 11:46:50 +0100
committerSimon Rettberg2019-03-25 11:46:50 +0100
commit03424ad19ac1bb42635a3d6653565aa0dc6ccf5a (patch)
treef3b068d5ca0aff6b897f98bb7eb7a5d097cec749 /modules-available/sysconfig/templates/list-modules.html
parent[dozmod] How about implementing runscript deletion (diff)
downloadslx-admin-03424ad19ac1bb42635a3d6653565aa0dc6ccf5a.tar.gz
slx-admin-03424ad19ac1bb42635a3d6653565aa0dc6ccf5a.tar.xz
slx-admin-03424ad19ac1bb42635a3d6653565aa0dc6ccf5a.zip
Introduce JS helper for bootstrap confirm dialogs on button-submit
Diffstat (limited to 'modules-available/sysconfig/templates/list-modules.html')
-rw-r--r--modules-available/sysconfig/templates/list-modules.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/sysconfig/templates/list-modules.html b/modules-available/sysconfig/templates/list-modules.html
index c9400696..99d535f1 100644
--- a/modules-available/sysconfig/templates/list-modules.html
+++ b/modules-available/sysconfig/templates/list-modules.html
@@ -40,8 +40,9 @@
title="{{lang_edit}}">
<span class="glyphicon glyphicon-edit"></span>
</a>
- <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{id}}"
- title="{{lang_delete}}" {{perms.module.edit.disabled}}>
+ <button type="submit" class="btn btn-danger btn-xs" name="del" value="{{id}}"
+ title="{{lang_delete}}" {{perms.module.edit.disabled}} data-confirm="#confirm-delete"
+ data-title="{{title}}">
<span class="glyphicon glyphicon-trash"></span>
</button>
</td>