Update visibility of email checkboxes when notification checkboxes
         change state, on the /manage/subscriptions page.

        Patch by yvi. 

diffs (19 lines):

diff -r 995f96748492 -r 11bd44b3cf42 htdocs/js/notifications.js
--- a/htdocs/js/notifications.js        Mon Jun 14 15:43:53 2010 -0500
+++ b/htdocs/js/notifications.js        Mon Jun 14 16:09:44 2010 -0500
@@ -5,6 +5,15 @@
         event.preventDefault();
         $.post("/__rpc_esn_subs", {action:'delsub', 
subid:$(this).attr("subid"), auth_token:$(this).attr("auth_token")});
         $(this).closest('tr').remove();
+    })
+
+    $(".SubscriptionInboxCheck").change(function(event)
+    {
+        if ( $(this).is(':checked') ) {
+            
$(this).closest('tr').children(".NotificationOptions").css('visibility', 
'visible');
+        } else {
+            
$(this).closest('tr').children(".NotificationOptions").css('visibility', 
'hidden');
+        }
     });
 }
 );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to