From 166a041e55a5529bd69a77aedeef696f697af7e5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 5 Feb 2015 15:14:23 +0000 Subject: [PATCH] Fix expose view shows loading icon even if the slide are loaded --- etemplate/js/expose.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index f547668826..c9941c7185 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -141,6 +141,11 @@ function expose (widget) .removeClass(gallery.options.slideErrorClass); return; } + // Remove the loading class if the slide is loaded + else + { + $j(gallery.slides[index]).removeClass(gallery.options.slideLoadingClass); + } // Just use add to let gallery create everything it needs var new_index = gallery.num;