|
|
@ -913,7 +913,7 @@ var PDFView = { |
|
|
|
|
|
|
|
|
|
|
|
DocumentProperties.resolveDataAvailable(); |
|
|
|
DocumentProperties.resolveDataAvailable(); |
|
|
|
|
|
|
|
|
|
|
|
pdfDocument.getDownloadInfo().then(function() { |
|
|
|
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() { |
|
|
|
self.downloadComplete = true; |
|
|
|
self.downloadComplete = true; |
|
|
|
PDFView.loadingBar.hide(); |
|
|
|
PDFView.loadingBar.hide(); |
|
|
|
var outerContainer = document.getElementById('outerContainer'); |
|
|
|
var outerContainer = document.getElementById('outerContainer'); |
|
|
@ -988,9 +988,11 @@ var PDFView = { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var event = document.createEvent('CustomEvent'); |
|
|
|
downloadedPromise.then(function () { |
|
|
|
event.initCustomEvent('documentload', true, true, {}); |
|
|
|
var event = document.createEvent('CustomEvent'); |
|
|
|
window.dispatchEvent(event); |
|
|
|
event.initCustomEvent('documentload', true, true, {}); |
|
|
|
|
|
|
|
window.dispatchEvent(event); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
PDFView.loadingBar.setWidth(container); |
|
|
|
PDFView.loadingBar.setWidth(container); |
|
|
|
|
|
|
|
|
|
|
|