preload bugfix
This commit is contained in:
parent
8552fc651b
commit
c02932d9aa
1 changed files with 2 additions and 2 deletions
|
@ -501,7 +501,6 @@ function ComicBook(id, srcs, opts) {
|
||||||
|
|
||||||
pages[i] = this;
|
pages[i] = this;
|
||||||
loaded.push(i);
|
loaded.push(i);
|
||||||
queue.splice(0,1);
|
|
||||||
|
|
||||||
$("#cb-progress-bar").progressbar("value", Math.floor((loaded.length / no_pages) * 100));
|
$("#cb-progress-bar").progressbar("value", Math.floor((loaded.length / no_pages) * 100));
|
||||||
|
|
||||||
|
@ -525,7 +524,8 @@ function ComicBook(id, srcs, opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queue.length) {
|
if (queue.length) {
|
||||||
loadImage(i+1);
|
loadImage(queue[0]);
|
||||||
|
queue.splice(0,1);
|
||||||
} else {
|
} else {
|
||||||
$("#cb-status").delay(500).fadeOut();
|
$("#cb-status").delay(500).fadeOut();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue