[Pkg-owncloud-commits] [owncloud] 08/32: toggle select all checkbox
David Prévot
taffit at moszumanska.debian.org
Sun Dec 15 01:47:31 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit e83ff6946541a9858cf9529c4f8c8f93b3762539
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Thu Dec 12 16:45:45 2013 +0100
toggle select all checkbox
---
apps/files_trashbin/js/trash.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 48e9629..1ff5bac 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();
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list