Template:Optin/Default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
hide error once optin selected |
||
Line 109: | Line 109: | ||
/* Called by Common.js */ |
/* Called by Common.js */ |
||
function initOptin() { |
function initOptin() { |
||
⚫ | |||
⚫ | |||
$('#error-optin').hide(); |
|||
⚫ | |||
⚫ | |||
if ( $('.optin-no-prompt').data('is-translated') === 'yes' ) { |
|||
if ( $('#optin-no').is(':checked') ) { |
if ( $('#optin-no').is(':checked') ) { |
||
$('.optin-no-prompt').removeClass('is-positive'); |
$('.optin-no-prompt').removeClass('is-positive'); |
||
Line 120: | Line 122: | ||
$('.optin-no-prompt').addClass('is-positive'); |
$('.optin-no-prompt').addClass('is-positive'); |
||
} |
} |
||
} |
} |
||
} |
}); |
||
} |
} |
||
</script> |
</script> |
Revision as of 21:26, 19 March 2019