Closed (fixed)
Project:
Subscriptions
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 May 2008 at 08:56 UTC
Updated:
22 May 2008 at 04:51 UTC
On your subscriptions settings form for a subscription type (like "Categories" or "Groups"), you only list the columns ("Send interval", "On updates", "On comments") for that subscription type if the checkbox is checked.
I'd like to duplicate that form functionality, but can't really understand the code (i.e., "subscriptions_content_type_form()"). I was wondering if you got this code from some other module that I might be able to study to understand how to do this?
Thanks for any assistance on this.
Comments
Comment #1
salvisI used tableselect.js (admin/content/node for example) as a starting point, but I developed the logic for showing/hiding the controls from scratch. It took a bit of experimenting in Firebug to find the right elements in the DOM tree...
Use Firebug to single-step through the code and watch the jQuery variables.
Comment #2
somebodysysop commentedThanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.