return [];
});
- OCA.WorkflowEngine = OCA.WorkflowEngine || {
+ OCA.WorkflowEngine = _.extend(OCA.WorkflowEngine || {}, {
availablePlugins: [],
availableChecks: [],
}
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());
}
</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}}">