* Mail/Chrome: Fix not closing print dialog in compose after print or cancel in Chrome

This commit is contained in:
Hadi Nategh 2014-09-09 14:13:32 +00:00
parent 1125c3f52c
commit be3e1f3e80

View File

@ -3738,7 +3738,10 @@ app.classes.mail = AppJS.extend(
if (!window.onafterprint)
{
window.onfocus = afterprint;
// For browsers which does not support onafterprint event, eg. Chrome
setTimeout(function() {
window.close();
}, 2000);
}
else
{