bootstrap-notify
bootstrap-notify copied to clipboard
IE11 / .close() not working always
I'm using: dlg = $.notify();
to show a notification then doing an ajax() to execute data preparation on the server after which I do
dlg.close();
window.location.replace(...); // forcing a file download
IE after that shows the SaveAs dialog. In this case the notification window does not dissapear in IE11
The solution I have is to do this instead of the previous last line:
setTimeout(function(){ window.location.replace(...); }, 1000);
Seems that IE stops processing all animations when a Save dialog is displayed. Other browsers seems working correctly. If I set a smaller delay then the closing animation sometimes stops not performing to the end.
- [ ] Is there another way to close the dialog in IE while the SaveAs is shown?
- [ ] How can I be sure that the Notification is closed?
I have no idea I'll look into this.