diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-07-26 12:03:16 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-07-26 12:03:16 +0200 |
commit | 8c31ac57ce140b334cc4265bd5142f8887d4fe91 (patch) | |
tree | 7af3642880e57d685680dcbdd3ecb96c98238907 /apps/workflowengine/js/admin.js | |
parent | 2f42a3fc319f4cffcae6db6b0874786f26fa4817 (diff) | |
download | nextcloud-server-8c31ac57ce140b334cc4265bd5142f8887d4fe91.tar.gz nextcloud-server-8c31ac57ce140b334cc4265bd5142f8887d4fe91.zip |
create an operation based on the correct model
Diffstat (limited to 'apps/workflowengine/js/admin.js')
-rw-r--r-- | apps/workflowengine/js/admin.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js index a29ad82ab89..f51352c45e4 100644 --- a/apps/workflowengine/js/admin.js +++ b/apps/workflowengine/js/admin.js @@ -341,18 +341,13 @@ this._initialize('OCA\\WorkflowEngine\\Operation'); }, _initialize: function(classname) { - var data = {}; - if (this.operationsClass !== null) { - data['class'] = this.operationsClass; - } this.collection.fetch({data: { 'class': classname }}); this.collection.once('sync', this.render, this); }, add: function() { - var operation = new OCA.WorkflowEngine.Operation(); - this.collection.add(operation); + var operation = this.collection.create(); this.renderOperation(operation); }, renderOperation: function(operation){ |