forked from lix-project/hydra
fixups to the rebase
This commit is contained in:
parent
eb8a0f279a
commit
1e34cd3d3d
|
@ -94,11 +94,11 @@
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-sm-3" for="editjobsettype">Type</label>
|
<label class="col-sm-3" for="editjobsettype">Type</label>
|
||||||
<div class="btn-group btn-group-toggle col-sm-9" data-toggle="buttons">
|
<div class="btn-group btn-group-toggle col-sm-9" data-toggle="buttons">
|
||||||
<label class="btn btn-secondary[% IF jobset.type == 1 %] active[% END %]">
|
<label id="type-flake" class="btn btn-secondary[% IF jobset.type == 1 %] active[% END %]">
|
||||||
<input type="radio" id="type-flake" name="enabled" value="1" [% IF jobset.type == 1 %]checked[% END %]>Flake</button>
|
<input type="radio" name="type" value="1" [% IF jobset.type == 1 %]checked[% END %]>Flake</button>
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-secondary[% IF jobset.type == 0 %] active[% END %]">
|
<label id="type-legacy" class="btn btn-secondary[% IF jobset.type == 0 %] active[% END %]">
|
||||||
<input type="radio" id="type-legacy" name="enabled" value="0" [% IF jobset.type == 0 %]checked[% END %]>Legacy</button>
|
<input type="radio" name="type" value="0" [% IF jobset.type == 0 %]checked[% END %]>Legacy</button>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
var id = 0;
|
var id = 0;
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
if ($("#type").val() == 0) {
|
if ($("input[type='radio'][name='type']:checked").val() == 0) {
|
||||||
$(".show-on-legacy").show();
|
$(".show-on-legacy").show();
|
||||||
$(".show-on-flake").hide();
|
$(".show-on-flake").hide();
|
||||||
} else {
|
} else {
|
||||||
|
@ -204,8 +204,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#type-flake").click(function() { update(); });
|
$("input[type='radio'][name='type']").change(function() { update(); });
|
||||||
$("#type-legacy").click(function() { update(); });
|
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue