updated ACP checkbox module so that it hides the checkbox via js instead of blanket CSS hiding

This commit is contained in:
Julian Lam
2015-07-10 15:13:42 -04:00
parent a4ace48469
commit 140b8be161
2 changed files with 1 additions and 4 deletions

View File

@@ -1,7 +1,3 @@
[type=checkbox] {
display: none;
}
label { label {
cursor: pointer; cursor: pointer;
} }

View File

@@ -179,6 +179,7 @@
var checkbox = $(this), var checkbox = $(this),
checked = checkbox.is(':checked'); checked = checkbox.is(':checked');
checkbox.hide();
if (checked) { if (checked) {
checkbox.after('<i class="fa fa-toggle-on"></i>'); checkbox.after('<i class="fa fa-toggle-on"></i>');
} }