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/dnbd3 | |
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/dnbd3')
-rw-r--r-- | modules-available/dnbd3/templates/page-serverlist.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/dnbd3/templates/page-serverlist.html b/modules-available/dnbd3/templates/page-serverlist.html index 65e4d6ea..c44eef0a 100644 --- a/modules-available/dnbd3/templates/page-serverlist.html +++ b/modules-available/dnbd3/templates/page-serverlist.html @@ -151,8 +151,8 @@ </button> {{/machineuuid}} {{^self}} - <button class="btn btn-danger btn-xs" name="server" value="{{serverid}}" {{edit_disabled}} - onclick="return confirm('{{lang_wantToDelete}}')" title="{{lang_delete}}"> + <button type="submit" class="btn btn-danger btn-xs" name="server" value="{{serverid}}" {{edit_disabled}} + data-confirm="#confirm-delete" data-title="{{fixedip}} {{clientip}}" title="{{lang_delete}}"> <span class="glyphicon glyphicon-trash"></span> </button> {{/self}} @@ -162,6 +162,7 @@ </tbody> </table> </form> +<div class="hidden" id="confirm-delete">{{lang_wantToDelete}}</div> <div class="btn-toolbar pull-right"> <div class="btn-group"> |