give the two radio buttons in custom select each an ID, and exclude them when theming radio buttons

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2020-09-18 09:24:33 +01:00
parent 5c8cba3a7b
commit 8007925cd2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ function initCheckboxRadioStyle() {
function applyCheckboxRadioStyle(style) {
boxsheet.attr("href", getCheckboxURL(style));
var sel = $("input[type='radio'],input[type='checkbox']");
var sel = $("input[type='radio'],input[type='checkbox']").not("#selSec").not("#selMin");
sel.parent().removeClass();
sel.parent().addClass("icheck-" + style);
}
+2 -2
View File
@@ -22,10 +22,10 @@
<input id="customTimeout" class="form-control" type="number" value="60">
<div class="input-group-btn" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio"> Secs
<input id="selSec" type="radio"> Secs
</label>
<label id="btnMins" class="btn btn-default active">
<input type="radio"> Mins
<input id="selMin" type="radio"> Mins
</label>
</div>
</div>