* 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 13:55:43 +00:00
parent 8ecaac7dde
commit 491e0002ca

View File

@ -3741,7 +3741,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
{