Fix selection of workflowengine rules and operators

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-09-26 09:43:54 +02:00
parent 26f1745fb9
commit 73cb19ca0d
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
(function() { (function() {
Handlebars.registerHelper('selectItem', function(currentValue, itemValue) { Handlebars.registerHelper('selectItem', function(currentValue, itemValue) {
if(currentValue === itemValue) { if(currentValue === itemValue) {
return 'selected=selected'; return 'selected="selected"';
} }
return ""; return "";

View File

@ -55,12 +55,12 @@
<div class="check" data-id="{{@index}}"> <div class="check" data-id="{{@index}}">
<select class="check-class"> <select class="check-class">
{{#each ../classes}} {{#each ../classes}}
<option value="{{class}}" {{selectItem class ../class}}>{{name}}</option> <option value="{{class}}" {{{selectItem class ../class}}}>{{name}}</option>
{{/each}} {{/each}}
</select> </select>
<select class="check-operator"> <select class="check-operator">
{{#each (getOperators class)}} {{#each (getOperators class)}}
<option value="{{operator}}" {{selectItem 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}}">