Fix for newsletter

This commit is contained in:
Abhishek Kumar
2024-04-02 14:57:25 +05:30
parent f74e4b665a
commit 561a55d075
2 changed files with 4 additions and 4 deletions

View File

@@ -17,8 +17,8 @@ $(document).on('click', '#blocknewsletter .newsletter-btn', function (e) {
let messageBlock = $('#blocknewsletter .message-block');
$(messageBlock).html(response.message_html).stop(true, true).fadeIn('fast');
},
error: function (jqXHR) {
if (jqXHR.readyState == 0) {
error: function () {
if (!onlineFlag) {
showErrorMessage(no_internet_txt);
}
},

View File

@@ -42,8 +42,8 @@ $(document).on('click', '#blocknewsletter .newsletter-btn', function (e) {
let messageBlock = $('#blocknewsletter .message-block');
$(messageBlock).html(response.message_html).stop(true, true).fadeIn('fast');
},
error: function (jqXHR) {
if (jqXHR.readyState == 0) {
error: function () {
if (!onlineFlag) {
showErrorMessage(no_internet_txt);
}
},