|
|
@@ -92,7 +92,7 @@ $("#pageIndex").keypress(function(event) {
|
|
|
return;
|
|
|
}
|
|
|
if (pageSize > PRINT_MAX_PAGE_SIZE) {
|
|
|
- alert(ALERT_FILE_TOO_LARGE);
|
|
|
+ alert(spinnerContainer, ALERT_FILE_TOO_LARGE);
|
|
|
return;
|
|
|
}
|
|
|
pageIndex = value;
|
|
|
@@ -200,7 +200,7 @@ function getWindowWidth() {
|
|
|
function printPdf() {
|
|
|
spinner = hideLoading(spinner);
|
|
|
if (pageSize > PRINT_MAX_PAGE_SIZE) {
|
|
|
- alert(ALERT_FILE_TOO_LARGE);
|
|
|
+ alert(spinnerContainer, ALERT_FILE_TOO_LARGE);
|
|
|
return;
|
|
|
}
|
|
|
if (!pdfDoc) {
|
|
|
@@ -251,7 +251,7 @@ function loadPagedPdf(pagedPdfPath, ifPreloadWholePdf) {
|
|
|
if (ifPreloadWholePdf) {
|
|
|
if (printType == 'PRINT'
|
|
|
&& pageSize > PRINT_MAX_PAGE_SIZE) {
|
|
|
- alert(ALERT_FILE_TOO_LARGE);
|
|
|
+ alert(spinnerContainer, ALERT_FILE_TOO_LARGE);
|
|
|
spinner = hideLoading(spinner);
|
|
|
} else {
|
|
|
console
|
|
|
@@ -345,7 +345,7 @@ function loadWholePdf() {
|
|
|
function waitWholePdfGenerated() {
|
|
|
waitWholePdfGeneratedCount++;
|
|
|
if (waitWholePdfGeneratedCount >= MAX_WAIT_WHOLE_PDF_GENERATED) {
|
|
|
- alert(ALERT_WAIT_WHOLE_PDF_GENERATED_TOO_LARGE);
|
|
|
+ alert(spinnerContainer, ALERT_WAIT_WHOLE_PDF_GENERATED_TOO_LARGE);
|
|
|
window.location.reload();
|
|
|
return;
|
|
|
}
|
|
|
@@ -478,7 +478,7 @@ function nextPage() {
|
|
|
return;
|
|
|
}
|
|
|
if (pageSize > PRINT_MAX_PAGE_SIZE) {
|
|
|
- alert(ALERT_FILE_TOO_LARGE);
|
|
|
+ alert(spinnerContainer, ALERT_FILE_TOO_LARGE);
|
|
|
return;
|
|
|
}
|
|
|
if (timeout()) {
|
|
|
@@ -521,7 +521,7 @@ function checkBrowser() {
|
|
|
var userAgent = navigator.userAgent;
|
|
|
console.log(userAgent);
|
|
|
if (userAgent.indexOf("Chrome") == -1 || userAgent.indexOf("Edge") !== -1) {
|
|
|
- alert("建议使用最新版Chrome浏览器进行打印");
|
|
|
+ alert(spinnerContainer, "建议使用最新版Chrome浏览器进行打印");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -533,7 +533,7 @@ function checkBrowser() {
|
|
|
function timeout() {
|
|
|
var now = new Date();
|
|
|
if (now - startTime >= MAX_TIME) {
|
|
|
- alert(ALERT_TIMEOUT);
|
|
|
+ alert(spinnerContainer, ALERT_TIMEOUT);
|
|
|
window.location.reload();
|
|
|
return true;
|
|
|
}
|