kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-06-14 09:09 pm

[dw-free] Notification selection interface needs JS refresh

[commit: http://hg.dwscoalition.org/dw-free/rev/11bd44b3cf42]

http://bugs.dwscoalition.org/show_bug.cgi?id=2614

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

Patch by [personal profile] yvi.

Files modified:
  • htdocs/js/notifications.js
--------------------------------------------------------------------------------
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');
+        }
     });
 }
 );
--------------------------------------------------------------------------------
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-06-15 05:55 am (UTC)(link)
100 bugs!

My 100th bug is a jQuery thingy!
ninetydegrees: Text: I came to dance (dance)

[personal profile] ninetydegrees 2010-06-15 09:15 pm (UTC)(link)
Hey! Congrats!