Fix morris comments

This commit is contained in:
Joas Schilling 2016-07-27 10:38:03 +02:00
parent 681eebcfe6
commit a3d1cd4ad2
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 3 additions and 6 deletions

View File

@ -35,7 +35,7 @@
return []; return [];
}); });
OCA.WorkflowEngine = OCA.WorkflowEngine || { OCA.WorkflowEngine = _.extend(OCA.WorkflowEngine || {}, {
availablePlugins: [], availablePlugins: [],
availableChecks: [], availableChecks: [],
@ -48,7 +48,7 @@
} }
return undefined; return undefined;
} }
}; });
/** /**
* 888b d888 888 888 * 888b d888 888 888
@ -337,9 +337,6 @@
_initialize: function(classname) { _initialize: function(classname) {
OCA.WorkflowEngine.availablePlugins = OC.Plugins.getPlugins('OCA.WorkflowEngine.CheckPlugins'); OCA.WorkflowEngine.availablePlugins = OC.Plugins.getPlugins('OCA.WorkflowEngine.CheckPlugins');
_.each(OCA.WorkflowEngine.availablePlugins, function(plugin) { _.each(OCA.WorkflowEngine.availablePlugins, function(plugin) {
if (_.isFunction(plugin.initialize)) {
plugin.initialize();
}
if (_.isFunction(plugin.getCheck)) { if (_.isFunction(plugin.getCheck)) {
OCA.WorkflowEngine.availableChecks.push(plugin.getCheck()); OCA.WorkflowEngine.availableChecks.push(plugin.getCheck());
} }

View File

@ -48,7 +48,7 @@
</select> </select>
<select class="check-operator"> <select class="check-operator">
{{#each (getOperators class)}} {{#each (getOperators class)}}
<option value="{{operator}}" {{selectItem this.operator ../operator}}>{{name}}</option> <option value="{{operator}}" {{selectItem operator ../operator}}>{{name}}</option>
{{/each}} {{/each}}
</select> </select>
<input type="text" class="check-value" value="{{value}}"> <input type="text" class="check-value" value="{{value}}">