Template:Optin/Default: Difference between revisions

Content deleted Content added
No edit summary
hide error once optin selected
Line 109:
/* Called by Common.js */
function initOptin() {
$('.optin-options').on('click', function(){
// Only do all this if we have translated prompts
if ( $('.#error-optin-no-prompt').datahide('is-translated') === 'yes' ) {;
 
$('.optin-options').on('click', function(){
// Only do all this if we have translated prompts
if ( $('.optin-no-prompt').data('is-translated') === 'yes' ) {
if ( $('#optin-no').is(':checked') ) {
$('.optin-no-prompt').removeClass('is-positive');
Line 120 ⟶ 122:
$('.optin-no-prompt').addClass('is-positive');
}
});
});
}
</script>