forked from extern/egroupware
Fix expose view loading for the first time always shows loading icon
This commit is contained in:
parent
21af57059d
commit
b193dc0733
@ -134,9 +134,11 @@ function expose (widget)
|
||||
// Don't bother with adding a default, we just did that
|
||||
if(image.loading)
|
||||
{
|
||||
$j(gallery.slides[index])
|
||||
.addClass(gallery.options.slideLoadingClass)
|
||||
.removeClass(gallery.options.slideErrorClass);
|
||||
//Add load class if it's really a slide with error
|
||||
if (gallery.slidesContainer.find('[data-index="'+index+'"]').hasClass(gallery.options.slideErrorClass))
|
||||
$j(gallery.slides[index])
|
||||
.addClass(gallery.options.slideLoadingClass)
|
||||
.removeClass(gallery.options.slideErrorClass);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user