diff options
author | Simon Rettberg | 2019-03-25 11:46:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-25 11:46:50 +0100 |
commit | 03424ad19ac1bb42635a3d6653565aa0dc6ccf5a (patch) | |
tree | f3b068d5ca0aff6b897f98bb7eb7a5d097cec749 /modules-available/sysconfig/templates/list-configs.html | |
parent | [dozmod] How about implementing runscript deletion (diff) | |
download | slx-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-configs.html')
-rw-r--r-- | modules-available/sysconfig/templates/list-configs.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/sysconfig/templates/list-configs.html b/modules-available/sysconfig/templates/list-configs.html index fe882c43..ea6705da 100644 --- a/modules-available/sysconfig/templates/list-configs.html +++ b/modules-available/sysconfig/templates/list-configs.html @@ -66,8 +66,9 @@ href="?do=SysConfig&action=addconfig&edit={{configid}}" title="{{lang_edit}}"> <span class="glyphicon glyphicon-edit"></span> </a> - <button class="btn btn-danger btn-xs confirm-delete" name="del" value="{{configid}}" - title="{{lang_delete}}" {{perms.config.edit.disabled}}> + <button type="submit" class="btn btn-danger btn-xs" name="del" value="{{configid}}" + title="{{lang_delete}}" {{perms.config.edit.disabled}} data-confirm="#confirm-delete" + data-title="{{config}}"> <span class="glyphicon glyphicon-trash"></span> </button> {{/locationid}} |