summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-27 10:38:03 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-27 10:38:03 +0200
commita3d1cd4ad224059d3bc512b5591356d384d70f4c (patch)
tree056b86b07da32ea896e397e1a4f6b5780251a3d8
parent681eebcfe613157e05919a3223fcd0bbbe324638 (diff)
downloadnextcloud-server-a3d1cd4ad224059d3bc512b5591356d384d70f4c.tar.gz
nextcloud-server-a3d1cd4ad224059d3bc512b5591356d384d70f4c.zip
Fix morris comments
-rw-r--r--apps/workflowengine/js/admin.js7
-rw-r--r--apps/workflowengine/templates/admin.php2
2 files changed, 3 insertions, 6 deletions
diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js
index 590274b8770..394c580fbb5 100644
--- a/apps/workflowengine/js/admin.js
+++ b/apps/workflowengine/js/admin.js
@@ -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
@@ -337,9 +337,6 @@
_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());
}
diff --git a/apps/workflowengine/templates/admin.php b/apps/workflowengine/templates/admin.php
index cb6895f80c1..c876f30c4c9 100644
--- a/apps/workflowengine/templates/admin.php
+++ b/apps/workflowengine/templates/admin.php
@@ -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}}">