mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
Fix for ajax long polling not working as expected. #518
This commit is contained in:
parent
2496660cc0
commit
4bb47f01a3
1 changed files with 6 additions and 3 deletions
|
@ -403,12 +403,15 @@
|
||||||
},
|
},
|
||||||
complete: function (data) {
|
complete: function (data) {
|
||||||
// Schedule the next
|
// Schedule the next
|
||||||
if (data !== "") {
|
if (data.responseText !== "") {
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
||||||
} else {
|
} else {
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
error: function () {
|
||||||
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
||||||
|
|
Loading…
Reference in a new issue