mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
updated ACP checkbox module so that it hides the checkbox via js instead of blanket CSS hiding
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
[type=checkbox] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user