diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-25 12:20:02 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-18 12:10:50 +0100 |
commit | 410e0fc28f25835c4b10e31066b641387cb53391 (patch) | |
tree | a4bf8d823b802848ed8d32f6740d45117a77de9c /apps/workflowengine/js | |
parent | 145da710a5cab401a0ac226b4c4141ba4f4ab6d9 (diff) | |
download | nextcloud-server-410e0fc28f25835c4b10e31066b641387cb53391.tar.gz nextcloud-server-410e0fc28f25835c4b10e31066b641387cb53391.zip |
Require password confirmation when changing workflow rules
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine/js')
-rw-r--r-- | apps/workflowengine/js/admin.js | 10 |
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)); |