diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 612e03fef..d65d30cfa 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -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 () { diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index fdc29938f..521a666ba 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -4306,6 +4306,9 @@ define([ var initialHide = data && data.autoStore && data.autoStore === -1; var modal = UI.cornerPopup(text, actions, footer, {hidden: initialHide}); + // Once the store pad popup is created, put the crowdfunding one in the queue + UIElements.displayCrowdfunding(common); + autoStoreModal[priv.channel] = modal; $(modal.popup).find('.cp-corner-footer a').click(function (e) { @@ -4314,7 +4317,6 @@ define([ }); $(hide).click(function () { - UIElements.displayCrowdfunding(common); delete autoStoreModal[priv.channel]; modal.delete(); }); @@ -4334,7 +4336,6 @@ define([ $(document).trigger('cpPadStored'); delete autoStoreModal[priv.channel]; modal.delete(); - UIElements.displayCrowdfunding(common); UI.log(Messages.autostore_saved); }); });