Skip to content
Snippets Groups Projects
Commit 27d9af36 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #6356 from owncloud/fix_6353

[trashbin] toggle select all checkbox
parents fc13b980 79719d9a
Branches
No related tags found
No related merge requests found
......@@ -152,6 +152,14 @@ $(document).ready(function() {
$('#fileList').on('click', 'td.filename input', function() {
var checkbox = $(this).parent().children('input:checkbox');
$(checkbox).parent().parent().toggleClass('selected');
if ($(checkbox).is(':checked')) {
var selectedCount = $('td.filename input:checkbox:checked').length;
if (selectedCount === $('td.filename input:checkbox').length) {
$('#select_all').prop('checked', true);
}
} else {
$('#select_all').prop('checked',false);
}
procesSelection();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment