do not popup the next notification message if the one is getting deleted hasn't being expanded while deleting

This commit is contained in:
Hadi Nategh 2018-07-03 17:09:48 +02:00
parent 64a64ce71b
commit 7d6ae58e4f

View File

@ -525,15 +525,15 @@
request.sendRequest(true);
var nextNode = egwpopup_message.next();
delete (notifymessages[id]);
if (nextNode.length > 0 && nextNode[0].id.match(/egwpopup_message_/ig) && egwpopup_message.hasClass('egwpopup_expanded'))
{
nextNode.trigger('click');
}
// try to close the dialog if expanded before hidding it
this.collapseMessage(_node, _event);
egwpopup_message.remove();
this.bell("inactive");
this.counterUpdate();
if (nextNode.length > 0 && nextNode[0].id.match(/egwpopup_message_/ig))
{
nextNode.trigger('click');
}
};
/**