|
|
@@ -283,7 +283,9 @@ function loadWholePdf() {
|
|
|
// 开始加载
|
|
|
console.log(new Date().format() + " ---- hiddenFrame loading...");
|
|
|
hiddenFrame.src = wholePdfPath;
|
|
|
- setTimeout("printPdf()", 1000);
|
|
|
+ if (printType == "PRINT") {
|
|
|
+ setTimeout("printPdf()", 1000);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -331,8 +333,9 @@ function getGeneratedPdfOrXlsInformation(pdfOrXls) {
|
|
|
* Get page info from document, resize canvas accordingly, and render page
|
|
|
*/
|
|
|
function renderPage() {
|
|
|
- if (!firstRequest) {
|
|
|
- hideLoading();
|
|
|
+ hideLoading();
|
|
|
+ if (firstRequest && printType == "PRINT") {
|
|
|
+ showLoading();
|
|
|
}
|
|
|
if (!pdfDoc) {
|
|
|
return;
|