Skip to content

Node.js based forum software built for the modern web

fix: move app.alert back into the conditionals

Julian Lamca9bae3a1ca2
diff --git a/public/src/app.js b/public/src/app.js
index 43fb017373..694fed6dd5 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -774,6 +774,7 @@ app.cacheBuster = null;
app.removeAlert('email_confirm');
ajaxify.go('user/' + app.user.userslug + '/edit/email');
};
+ app.alert(msg);
} else if (!app.user['email:confirmed'] && !app.user.isEmailConfirmSent) {
msg.message = err ? err.message : '[[error:email-not-confirmed]]';
msg.clickfn = function () {
@@ -785,11 +786,11 @@ app.cacheBuster = null;
app.alertSuccess('[[notifications:email-confirm-sent]]');
});
};
+ app.alert(msg);
} else if (!app.user['email:confirmed'] && app.user.isEmailConfirmSent) {
msg.message = '[[error:email-not-confirmed-email-sent]]';
+ app.alert(msg);
}
-
- app.alert(msg);
};
app.parseAndTranslate = function (template, blockName, data, callback) {