aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-06 15:26:13 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-06 15:26:13 +0000
commitf16e996cfa7270c9836bf3a9e1cadde6c2748ba1 (patch)
tree215d0d2d54102cf2c99c408f411122cbe6a77e8a /mod/notifications
parentb07f7515891e275745bb2b853c2111897a6c96e9 (diff)
downloadelgg-f16e996cfa7270c9836bf3a9e1cadde6c2748ba1.tar.gz
elgg-f16e996cfa7270c9836bf3a9e1cadde6c2748ba1.tar.bz2
An attempt at fixing the toggle issue
git-svn-id: https://code.elgg.org/elgg/trunk@2669 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index 106cabd58..981e79823 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -8,9 +8,11 @@
function setCollection(members, method, id) {
for ( var i in members ) {
- var checked = $('#' + method + 'collections' + id).children("INPUT[type='checkbox']").attr('checked');
- $("#"+method+members[i]).children("INPUT[type='checkbox']").attr('checked', checked);
- functioncall = 'adjust' + method + '_alt("'+method+members[i]+'");';
+ var checked = $('#' + method + 'collections' + id).children("INPUT[type='checkbox']").attr('checked');
+ if ($("#"+method+members[i]).children("INPUT[type='checkbox']").attr('checked') != checked) {
+ $("#"+method+members[i]).children("INPUT[type='checkbox']").attr('checked', checked);
+ functioncall = 'adjust' + method + '_alt("'+method+members[i]+'");';
+ }
eval(functioncall);
}
}