mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix a few js errors in expose
This commit is contained in:
parent
e0617394fb
commit
ae961f208d
@ -608,7 +608,7 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Remove the loading class if the slide is loaded
|
// Remove the loading class if the slide is loaded
|
||||||
else
|
else if(this._gallery.slides[index])
|
||||||
{
|
{
|
||||||
this._gallery.slides[index].classList.remove(this._gallery.options.slideLoadingClass);
|
this._gallery.slides[index].classList.remove(this._gallery.options.slideLoadingClass);
|
||||||
}
|
}
|
||||||
@ -637,7 +637,10 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
|
|||||||
// Move into place in DOM
|
// Move into place in DOM
|
||||||
let node = this._gallery[var_name][index];
|
let node = this._gallery[var_name][index];
|
||||||
node.setAttribute('data-index', index)
|
node.setAttribute('data-index', index)
|
||||||
this._gallery.slidesContainer[0].insertBefore(this._gallery.slides[(index + 1)], undefined);
|
if(this._gallery.slides[(index + 1)])
|
||||||
|
{
|
||||||
|
this._gallery.slidesContainer[0].insertBefore(this._gallery.slides[(index + 1)], undefined);
|
||||||
|
}
|
||||||
if(active)
|
if(active)
|
||||||
{
|
{
|
||||||
node.classList.add(this._gallery.options.activeIndicatorClass);
|
node.classList.add(this._gallery.options.activeIndicatorClass);
|
||||||
|
Loading…
Reference in New Issue
Block a user