fixed toggle all and checkox js bug

This commit is contained in:
Serghey Rodin 2016-07-18 17:15:54 +03:00
parent 8c2a14a71f
commit f5acec8c3c

View file

@ -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');
}
}