]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix morris comments
authorJoas Schilling <coding@schilljs.com>
Wed, 27 Jul 2016 08:38:03 +0000 (10:38 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 27 Jul 2016 08:38:03 +0000 (10:38 +0200)
apps/workflowengine/js/admin.js
apps/workflowengine/templates/admin.php

index 590274b87700e034b7c8db74019fcffdf0242789..394c580fbb505848877dda9571395c93e8fed2e1 100644 (file)
@@ -35,7 +35,7 @@
                return [];
        });
 
-       OCA.WorkflowEngine = OCA.WorkflowEngine || {
+       OCA.WorkflowEngine = _.extend(OCA.WorkflowEngine || {}, {
                        availablePlugins: [],
                        availableChecks: [],
 
@@ -48,7 +48,7 @@
                                }
                                return undefined;
                        }
-       };
+       });
 
        /**
         * 888b     d888               888          888
                        _initialize: function(classname) {
                                OCA.WorkflowEngine.availablePlugins = OC.Plugins.getPlugins('OCA.WorkflowEngine.CheckPlugins');
                                _.each(OCA.WorkflowEngine.availablePlugins, function(plugin) {
-                                       if (_.isFunction(plugin.initialize)) {
-                                               plugin.initialize();
-                                       }
                                        if (_.isFunction(plugin.getCheck)) {
                                                OCA.WorkflowEngine.availableChecks.push(plugin.getCheck());
                                        }
index cb6895f80c12ed8f82fa75d2266d45cef220520c..c876f30c4c95548f8864d0e3754802d6c33f30df 100644 (file)
@@ -48,7 +48,7 @@
                                        </select>
                                        <select class="check-operator">
                                                {{#each (getOperators class)}}
-                                               <option value="{{operator}}" {{selectItem this.operator ../operator}}>{{name}}</option>
+                                               <option value="{{operator}}" {{selectItem operator ../operator}}>{{name}}</option>
                                                {{/each}}
                                        </select>
                                        <input type="text" class="check-value" value="{{value}}">