diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-12-16 22:38:22 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-12-16 22:38:22 +0100 |
commit | 8f0c56c1b245ed7c6856080597b48ef3d82d1a24 (patch) | |
tree | f87bc926726f9aeaa1692bc94355951e7d9f28a2 /apps/files_trashbin/js | |
parent | 7afe6b349352f90bec5a8409bf5c23494f808f1a (diff) | |
parent | 77b68505c2164330803ce5d5dcbb9fd07438e18d (diff) | |
download | nextcloud-server-8f0c56c1b245ed7c6856080597b48ef3d82d1a24.tar.gz nextcloud-server-8f0c56c1b245ed7c6856080597b48ef3d82d1a24.zip |
Merge branch 'master' into fix-5388-master
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r-- | apps/files_trashbin/js/trash.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index 48e9629f7de..1ff5bac6130 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -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(); }); |