summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/js/admin.js')
-rw-r--r--apps/workflowengine/js/admin.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js
index 0357d741ab1..7f9a709ec14 100644
--- a/apps/workflowengine/js/admin.js
+++ b/apps/workflowengine/js/admin.js
@@ -163,6 +163,11 @@
}
},
delete: function() {
+ if (OC.PasswordConfirmation.requiresPasswordConfirmation()) {
+ OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this.delete, this));
+ return;
+ }
+
this.model.destroy();
this.remove();
},
@@ -173,6 +178,11 @@
this.render();
},
save: function() {
+ if (OC.PasswordConfirmation.requiresPasswordConfirmation()) {
+ OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this.save, this));
+ return;
+ }
+
var success = function(model, response, options) {
this.saving = false;
this.originalModel = JSON.parse(JSON.stringify(this.model));