summaryrefslogtreecommitdiff
path: root/html/content/js/Utils/confirm.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/content/js/Utils/confirm.js')
-rw-r--r--html/content/js/Utils/confirm.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/html/content/js/Utils/confirm.js b/html/content/js/Utils/confirm.js
deleted file mode 100644
index ef59cbb..0000000
--- a/html/content/js/Utils/confirm.js
+++ /dev/null
@@ -1,27 +0,0 @@
-define(function () {
- return function (options, callback) {
- var $dialog = $(options.template instanceof jQuery ? options.template.html() : options.template);
- $dialog.hide();
- $('body').append($dialog);
- $dialog.parseAttributePlugins();
-
- function close() {
- $dialog.remove();
- }
-
- function open() {
- $dialog.show();
- }
-
- open();
- $dialog.find('.button.yes').click(function (e) {
- e.preventDefault();
- close();
- callback();
- });
- $dialog.find('.button.no').click(function (e) {
- e.preventDefault();
- close();
- });
- };
-}); \ No newline at end of file