Template:Optin/Default: Difference between revisions

Content deleted Content added
use Template:OptinText for error message translations
change function to only fire if selection actually changes
Line 110:
/* Called by Common.js */
function initOptin() {
$('.optin-options').on('clickchange', function(e) {
$('#error-optin').hide();
 
// Only do all this if we have translated prompts
if ( $('.optin-no-prompt').data('is-translated') === 'yes' ) {
if ( $(e.target.id === '#optin-no').is(':checked') ) {
$('.optin-no-prompt').removeClass('is-positive');
if ( !$('.optin-no-prompt').is(':visible') ) {