renamed loadingIndicator
This commit is contained in:
parent
4c1df0f1ea
commit
f641d05eb9
1 changed files with 6 additions and 6 deletions
|
@ -308,7 +308,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
loadingIndicator: $(document.createElement("div"))
|
loadingOverlay: $(document.createElement("div"))
|
||||||
.attr("id", "cb-loading-overlay")
|
.attr("id", "cb-loading-overlay")
|
||||||
.addClass("cb-control")
|
.addClass("cb-control")
|
||||||
};
|
};
|
||||||
|
@ -319,7 +319,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
ComicBook.prototype.renderControls = function() {
|
ComicBook.prototype.renderControls = function() {
|
||||||
|
|
||||||
$(canvas)
|
$(canvas)
|
||||||
.before(this.getControl("loadingIndicator"))
|
.before(this.getControl("loadingOverlay"))
|
||||||
.before(this.getControl("status"))
|
.before(this.getControl("status"))
|
||||||
.after(this.getControl("toolbar"))
|
.after(this.getControl("toolbar"))
|
||||||
.after(this.getControl("navigation").left)
|
.after(this.getControl("navigation").left)
|
||||||
|
@ -406,7 +406,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
return pages[i];
|
return pages[i];
|
||||||
} else {
|
} else {
|
||||||
page_requested = i;
|
page_requested = i;
|
||||||
this.showControl("loadingIndicator");
|
this.showControl("loadingOverlay");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
*/
|
*/
|
||||||
ComicBook.prototype.preload = function () {
|
ComicBook.prototype.preload = function () {
|
||||||
|
|
||||||
this.showControl("loadingIndicator");
|
this.showControl("loadingOverlay");
|
||||||
|
|
||||||
//var srcs = this.srcs;
|
//var srcs = this.srcs;
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ComicBook.prototype.drawPage();
|
ComicBook.prototype.drawPage();
|
||||||
ComicBook.prototype.hideControl("loadingIndicator");
|
ComicBook.prototype.hideControl("loadingOverlay");
|
||||||
}
|
}
|
||||||
if (loaded.length === no_pages) { ComicBook.prototype.hideControl("status") }
|
if (loaded.length === no_pages) { ComicBook.prototype.hideControl("status") }
|
||||||
};
|
};
|
||||||
|
@ -522,7 +522,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
if (typeof page_no === "number" && page_no < srcs.length) {
|
if (typeof page_no === "number" && page_no < srcs.length) {
|
||||||
pointer = page_no-1;
|
pointer = page_no-1;
|
||||||
if (!this.pageLoaded(page_no)) {
|
if (!this.pageLoaded(page_no)) {
|
||||||
this.showControl("loadingIndicator");
|
this.showControl("loadingOverlay");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue