Skip to content

Commit

Permalink
fixing email
Browse files Browse the repository at this point in the history
  • Loading branch information
abhsurek committed May 11, 2021
1 parent 36268a5 commit f0eca26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions public/scripts/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ $(function(){
} else if (result.indexOf("A verification email has been sent") > -1) {
alert_response = result;
alert_type = "alert-info";
alert_data = "<div class=\"alert " + alert_type + " alert-dismissible fade show\" role=\"alert\">" +
" <strong>" + alert_response + "</strong>" +
" <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>" +
" </div>";
} else {
alert_response = result;
alert_type = "alert-success";
alert_data = `
<div id="successModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="successModalLabel" aria-hidden="true">
<div class="modal-dialog gradient-custom-modal" role="document">
Expand All @@ -80,6 +73,13 @@ $(function(){
});
</script>
`;
} else {
alert_response = result;
alert_type = "alert-success";
alert_data = "<div class=\"alert " + alert_type + " alert-dismissible fade show\" role=\"alert\">" +
" <strong>" + alert_response + "</strong>" +
" <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>" +
" </div>";
}
}).fail(function (jqXHR, textStatus, error) {
alert_response = "Unable to subscribe at the moment! | " + textStatus + " | " + error;
Expand Down

0 comments on commit f0eca26

Please sign in to comment.