Skip to content

Commit

Permalink
Merge pull request coolwanglu#500 from intellisense/master
Browse files Browse the repository at this point in the history
Another bug fix
  • Loading branch information
coolwanglu committed Apr 2, 2015
2 parents 8b16612 + 1bc48dd commit 5e11cc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pdf2htmlEX is created and maintained by
Lu Wang <[email protected]>

Contributors: (alphabetical order)
Aamir Adnan <[email protected]>
Chris Cinelli <[email protected]>
Daniel Bonniot de Ruisselet <[email protected]>
Deepak <[email protected]>
Expand Down
11 changes: 7 additions & 4 deletions share/pdf2htmlEX.js.in
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,13 @@ Viewer.prototype = {
if (url) {
this.pages_loading[idx] = true; // set semaphore

// add a copy of the loading indicator
var new_loading_indicator = this.loading_indicator.cloneNode();
new_loading_indicator.classList.add('active');
cur_page_ele.appendChild(new_loading_indicator);
// add a copy of the loading indicator if not already present
var new_loading_indicator = cur_page_ele.getElementsByClassName(this.config['loading_indicator_cls'])[0];
if (typeof new_loading_indicator === 'undefined'){
new_loading_indicator = this.loading_indicator.cloneNode(true);
new_loading_indicator.classList.add('active');
cur_page_ele.appendChild(new_loading_indicator);
}

// load data
{
Expand Down

0 comments on commit 5e11cc4

Please sign in to comment.