We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3997138 commit 01e0bd7Copy full SHA for 01e0bd7
1 file changed
web/js/app.js
@@ -1045,15 +1045,14 @@ hover_menu = function() {
1045
1046
1047
function checkedAll(frmname) {
1048
- if ($('.l-unit.selected:not(.header)').length > 0 || !$('.l-unit').length ) {
1049
- $('.l-unit:not(.header)').removeClass("selected");
1050
- $('.ch-toggle').prop("checked", false);
1051
- $('.toggle-all').removeClass('clicked-on');
1052
- }
1053
- else {
+ if($('input#toggle-all').prop('checked')){
1054
$('.l-unit:not(.header)').addClass("selected");
1055
$('.ch-toggle').prop("checked", true);
1056
$('.toggle-all').addClass('clicked-on');
+ } else {
+ $('.l-unit:not(.header)').removeClass("selected");
+ $('.ch-toggle').prop("checked", false);
+ $('.toggle-all').removeClass('clicked-on');
1057
}
1058
1059
0 commit comments