0001-backoffice-evaluate-pre-checked-rows-for-mass-action.patch
wcs/qommon/static/js/wcs.listing.js | ||
---|---|---|
33 | 33 |
return false; |
34 | 34 |
} |
35 | 35 |
}); |
36 |
if ($('#listing tbody input[type=checkbox]:checked').length == 0) { |
|
37 |
$('form#multi-actions div.buttons').hide(); |
|
38 |
} else { |
|
39 |
$('form#multi-actions div.buttons').show(); |
|
40 |
} |
|
41 | 36 |
$('#listing tbody input[type=checkbox]').each(function() { |
42 | 37 |
if ($(this).is(':checked')) { |
43 | 38 |
$(this).parents('tr').addClass('checked'); |
... | ... | |
93 | 88 |
$('form#multi-actions div.buttons').show(); |
94 | 89 |
} |
95 | 90 |
}); |
91 |
// hide at first |
|
92 |
$('form#multi-actions div.buttons').hide(); |
|
93 |
// but trigger events in case of prechecked rows |
|
94 |
$('#listing input[type=checkbox]:checked').trigger('change'); |
|
96 | 95 |
} |
97 | 96 | |
98 | 97 |
function prepare_column_headers() { |
99 |
- |