Fix selection of workflowengine rules and operators
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
26f1745fb9
commit
73cb19ca0d
|
@ -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 "";
|
||||||
|
|
|
@ -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}}">
|
||||||
|
|
Loading…
Reference in New Issue