mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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
|
// Don't bother with adding a default, we just did that
|
||||||
if(image.loading)
|
if(image.loading)
|
||||||
{
|
{
|
||||||
$j(gallery.slides[index])
|
//Add load class if it's really a slide with error
|
||||||
.addClass(gallery.options.slideLoadingClass)
|
if (gallery.slidesContainer.find('[data-index="'+index+'"]').hasClass(gallery.options.slideErrorClass))
|
||||||
.removeClass(gallery.options.slideErrorClass);
|
$j(gallery.slides[index])
|
||||||
|
.addClass(gallery.options.slideLoadingClass)
|
||||||
|
.removeClass(gallery.options.slideErrorClass);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user