[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
yvi.
Files modified:
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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'); + } }); } ); --------------------------------------------------------------------------------
no subject
My 100th bug is a jQuery thingy!
no subject