mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
fixed toggle all and checkox js bug
This commit is contained in:
parent
8c2a14a71f
commit
f5acec8c3c
1 changed files with 2 additions and 2 deletions
|
@ -1042,12 +1042,12 @@ hover_menu = function() {
|
|||
function checkedAll(frmname) {
|
||||
if ($('.l-unit.selected:not(.header)').length > 0) {
|
||||
$('.l-unit:not(.header)').removeClass("selected");
|
||||
$('.ch-toggle').attr("checked", false);
|
||||
$('.ch-toggle').prop("checked", false);
|
||||
$('.toggle-all').removeClass('clicked-on');
|
||||
}
|
||||
else {
|
||||
$('.l-unit:not(.header)').addClass("selected");
|
||||
$('.ch-toggle').attr("checked", true);
|
||||
$('.ch-toggle').prop("checked", true);
|
||||
$('.toggle-all').addClass('clicked-on');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue