diff --git a/themes/bootstrap/js/common.js b/themes/bootstrap/js/common.js index 8c4eebfdaaffff382e9c899b101b8a4c853f5e2c..6f035b6cfbcd3c18b58811e8d56cdce8466cf9a6 100644 --- a/themes/bootstrap/js/common.js +++ b/themes/bootstrap/js/common.js @@ -145,7 +145,11 @@ $(document).ready(function() { var url = window.location.href; if(url.indexOf('?' + 'print' + '=') != -1 || url.indexOf('&' + 'print' + '=') != -1) { $("link[media='print']").attr("media", "all"); - window.print(); + $(document).ajaxStop(function() { + window.print(); + }); + // Make an ajax call to ensure that ajaxStop is triggered + $.getJSON(path + '/AJAX/JSON', {method: 'keepAlive'}); } // Collapsing facets