Fix nm printing did not properly wait for column selection or rows before trying to print

This commit is contained in:
nathan
2022-10-06 15:39:35 -06:00
parent d6bfa7d9ee
commit 8221d66ce2
4 changed files with 49 additions and 62 deletions

View File

@ -1307,9 +1307,11 @@ window.fw_base = (function(){ "use strict"; return Class.extend(
appWindow.onafterprint = afterPrint;
// Wait for everything to be loaded, then send it off
jQuery.when.apply(jQuery, deferred).done(function() {
Promise.all(deferred).then(() =>
{
appWindow.setTimeout(appWindow.print, 0);
}).fail(function() {
}).catch(function ()
{
afterPrint();
});
}