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');
+        }
     });
 }
 );
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org