From fbf9a554676069386e72b90464b50c78d70a2f33 Mon Sep 17 00:00:00 2001 From: jbtbnl Date: Thu, 23 Jan 2014 20:53:12 +0100 Subject: [PATCH] Fixed 'select all' checkbox --- js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index b6895ecf..0633203e 100644 --- a/js/app.js +++ b/js/app.js @@ -810,9 +810,9 @@ OC.Contacts = OC.Contacts || { } }); - this.$contactList.on('click', 'label', function(event) { - var id = '#' + $(this).attr('for'); - $(id).prop('checked', !$(id).prop('checked')); + this.$contactList.on('click', 'label:not[for=select_all]', function(event) { + var $input = $(this).prev('input'); + $input.prop('checked', !$input.prop('checked')); return false; // Prevent opening contact });