preload bugfix

This commit is contained in:
Bala Clark 2011-09-18 01:51:06 +02:00
parent 8552fc651b
commit c02932d9aa

View file

@ -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();
} }