bootstrap-notify icon indicating copy to clipboard operation
bootstrap-notify copied to clipboard

IE11 / .close() not working always

Open leomazzi opened this issue 10 years ago • 1 comments

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?

leomazzi avatar Jan 11 '16 14:01 leomazzi

I have no idea I'll look into this.

mouse0270 avatar Jan 21 '16 23:01 mouse0270