From 68f8954d74b2d7871bf000d68b3d3401d895bda8 Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Thu, 15 Jul 2010 09:52:12 +0000 Subject: [PATCH] only insert the status panel if its not already there. Closes #1 --- ComicBook.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ComicBook.js b/ComicBook.js index 8320d22..1ffb229 100644 --- a/ComicBook.js +++ b/ComicBook.js @@ -130,7 +130,10 @@ function ComicBook(id, srcs, opts) { var i = 0; // the current page counter for this method - $(canvas).after('

'); + // show load status panel + if ($("#status").length === 0) { + $(canvas).after('

'); + } // I am using recursion instead of a forEach loop so that the next image is // only loaded when the previous one has completely finished