File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1045,15 +1045,14 @@ hover_menu = function() {
10451045
10461046
10471047function 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 {
1048+ if ( $ ( 'input#toggle-all' ) . prop ( 'checked' ) ) {
10541049 $ ( '.l-unit:not(.header)' ) . addClass ( "selected" ) ;
10551050 $ ( '.ch-toggle' ) . prop ( "checked" , true ) ;
10561051 $ ( '.toggle-all' ) . addClass ( 'clicked-on' ) ;
1052+ } else {
1053+ $ ( '.l-unit:not(.header)' ) . removeClass ( "selected" ) ;
1054+ $ ( '.ch-toggle' ) . prop ( "checked" , false ) ;
1055+ $ ( '.toggle-all' ) . removeClass ( 'clicked-on' ) ;
10571056 }
10581057}
10591058
You can’t perform that action at this time.
0 commit comments