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

This commit is contained in:
Ralf Becker 2015-02-06 08:35:20 +00:00
parent 6b24bc150d
commit 7b99be3783

View File

@ -141,6 +141,11 @@ function expose (widget)
.removeClass(gallery.options.slideErrorClass); .removeClass(gallery.options.slideErrorClass);
return; 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 // Just use add to let gallery create everything it needs
var new_index = gallery.num; var new_index = gallery.num;