Fix expose view shows loading icon even if the slide are loaded

This commit is contained in:
Hadi Nategh 2015-02-05 15:14:23 +00:00
parent e42c5e3b02
commit 166a041e55

View File

@ -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;