From bc3ffae16757c626a493b05a5492b0a538bbb1db Mon Sep 17 00:00:00 2001 From: Nathan Gray <nathangray.bsc@gmail.com> Date: Thu, 5 Feb 2015 21:57:20 +0000 Subject: [PATCH] Attempt to get nextmatch printing always on the page (landscape) - put things back if they cancel at nextmatch dialog --- etemplate/js/etemplate2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index 76df97b102..2b8eec82ca 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -962,6 +962,8 @@ etemplate2.print = function(_app) // Wait for everything to be loaded, then send it off jQuery.when.apply(jQuery, deferred).done(function() { egw.window.print(); + }).fail(function() { + afterPrint(); }); }