diff options
Diffstat (limited to 'template/admin/rsrc')
-rw-r--r-- | template/admin/rsrc/main.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/template/admin/rsrc/main.js b/template/admin/rsrc/main.js index 3d5546f..679a3fc 100644 --- a/template/admin/rsrc/main.js +++ b/template/admin/rsrc/main.js @@ -91,4 +91,15 @@ addEventListener("DOMContentLoaded", function() { } }, false); } +}, false); + +//============================================================================== +// Confirmation message for delete buttons +//============================================================================== +addEventListener("DOMContentLoaded", function() { + if(document.getElementById("delete-button")) { + document.getElementById("delete-button").onclick = function(e) { + return confirm(e.target.getAttribute('data-text')); + }; + } }, false);
\ No newline at end of file |