From 1ad49aaf2f1cb23a81909576437997fffa3951d2 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 31 Jul 2008 15:56:43 +0000 Subject: More updates for collections - save now works properly. git-svn-id: https://code.elgg.org/elgg/trunk@1637 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/picker.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php index d813e6fe7..2f51a02d7 100644 --- a/views/default/friends/picker.php +++ b/views/default/friends/picker.php @@ -102,7 +102,9 @@ $('#collectionMembersForm').submit(function() { var inputs = []; $(':input', this).each(function() { - inputs.push(this.name + '=' + escape(this.value)); + if (this.type != 'checkbox' || (this.type == 'checkbox' && this.checked != false)) { + inputs.push(this.name + '=' + escape(this.value)); + } }); jQuery.ajax({ type: "POST", -- cgit v1.2.3