Small refactoring of the loadingBar hiding code
This commit is contained in:
parent
fb6d87c77b
commit
cfeb4c1019
@ -329,7 +329,7 @@ var ProgressBar = (function ProgressBarClosure() {
|
|||||||
|
|
||||||
hide: function ProgressBar_hide() {
|
hide: function ProgressBar_hide() {
|
||||||
this.bar.classList.add('hidden');
|
this.bar.classList.add('hidden');
|
||||||
this.bar.removeAttribute('style');
|
document.body.classList.remove('loadingInProgress');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@ http://sourceforge.net/adobe/cmap/wiki/License/
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body tabindex="1">
|
<body tabindex="1" class="loadingInProgress">
|
||||||
<div id="outerContainer" class="loadingInProgress">
|
<div id="outerContainer">
|
||||||
|
|
||||||
<div id="sidebarContainer">
|
<div id="sidebarContainer">
|
||||||
<div id="toolbarSidebar">
|
<div id="toolbarSidebar">
|
||||||
|
@ -873,8 +873,6 @@ var PDFViewerApplication = {
|
|||||||
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() {
|
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() {
|
||||||
self.downloadComplete = true;
|
self.downloadComplete = true;
|
||||||
self.loadingBar.hide();
|
self.loadingBar.hide();
|
||||||
var outerContainer = document.getElementById('outerContainer');
|
|
||||||
outerContainer.classList.remove('loadingInProgress');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var pagesCount = pdfDocument.numPages;
|
var pagesCount = pdfDocument.numPages;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user