Fix cornerPopup timeout not always applied

This commit is contained in:
yflory
2020-02-21 12:15:34 +01:00
parent d0bce11c21
commit 2cceb54aac
2 changed files with 11 additions and 3 deletions

View File

@@ -1148,7 +1148,14 @@ define([
var deletePopup = function () {
$popup.remove();
if (!corner.queue.length) {
corner.state = false;
// Make sure no other popup is displayed in the next 5s
setTimeout(function () {
if (corner.queue.length) {
$('body').append(corner.queue.pop());
return;
}
corner.state = false;
}, 5000);
return;
}
setTimeout(function () {