only insert the status panel if its not already there. Closes #1

This commit is contained in:
Bala Clark 2010-07-15 09:52:12 +00:00
parent 9284f8bddd
commit 68f8954d74

View file

@ -130,7 +130,10 @@ function ComicBook(id, srcs, opts) {
var i = 0; // the current page counter for this method
// show load status panel
if ($("#status").length === 0) {
$(canvas).after('<div class="control" id="status"><p></p></div>');
}
// I am using recursion instead of a forEach loop so that the next image is
// only loaded when the previous one has completely finished