Skip to content

Instantly share code, notes, and snippets.

@dubbs
Created November 2, 2011 15:25
Show Gist options
  • Save dubbs/1333925 to your computer and use it in GitHub Desktop.
Save dubbs/1333925 to your computer and use it in GitHub Desktop.
ie - fix broken onafterprint
function beforePrint(e) {}
function afterPrint(e) {}
if ($.browser.msie) {
window.onbeforeprint = beforePrint;
window.onafterprint = function() {
setTimeout(function () { afterPrint(); }, 1000);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment