diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-10-08 17:51:38 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-10-08 17:51:38 +0000 |
| commit | fa4065ebea8ef04a912c03753cc2c722230eba03 (patch) | |
| tree | 19ba95e2107b70079d03505770ec2f524325e79e /templates | |
| parent | 8cd20c9797b7e0d437566d718785a4e397e8f6a8 (diff) | |
| download | newsletters-fa4065ebea8ef04a912c03753cc2c722230eba03.tar.gz newsletters-fa4065ebea8ef04a912c03753cc2c722230eba03.tar.bz2 newsletters-fa4065ebea8ef04a912c03753cc2c722230eba03.zip | |
add JS to uncheck unsub button when sub is checked
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/user_register_inc.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user_register_inc.tpl b/templates/user_register_inc.tpl index 1e7ab51..5946423 100644 --- a/templates/user_register_inc.tpl +++ b/templates/user_register_inc.tpl @@ -17,10 +17,10 @@ for (var i = 0; i < checkboxes.length; i++){ {formlabel label="Subscriptions"} {forminput} {foreach from=$newsletters item='newsletter'} - <input type="checkbox" checked="true" name="subscribe[]" value="{$newsletter.nl_id}"/><strong>{$newsletter.title}</strong><br/> + <input type="checkbox" checked="true" name="subscribe[]" onclick="document.getElementById('unsubscribeall').checked=false;" value="{$newsletter.nl_id}"/><strong>{$newsletter.title}</strong><br/> {/foreach} {formhelp note="Uncheck the boxes to opt-out of the specified newsletter."} - <input type="checkbox" onclick="unsubscribe_all();"/><strong>Unsubscribe All</strong><br/> + <input id="unsubscribeall" type="checkbox" onclick="unsubscribe_all();"/><strong>Unsubscribe All</strong><br/> {formhelp note="Check this box to unsubscribe from all of the above newsletters."} {/forminput} </div> |
