close gallery on action
This commit is contained in:
parent
b2c3ec5d3f
commit
9dc40279fa
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ class lgAdmin {
|
|||
|
||||
// Remove HTML element
|
||||
document.querySelectorAll(`[data-slide-name='${this.photoId}']`)[0].remove()
|
||||
this.core.goToNextSlide();
|
||||
this.core.closeGallery();
|
||||
this.core.refresh();
|
||||
});
|
||||
}
|
||||
|
|
@ -83,7 +83,7 @@ class lgAdmin {
|
|||
const thumbnail = document.querySelectorAll(`[data-slide-name='${this.photoId}']`)[0];
|
||||
if (!this.isStaff) {
|
||||
thumbnail.remove()
|
||||
this.core.goToNextSlide();
|
||||
this.core.closeGallery();
|
||||
this.core.refresh();
|
||||
} else {
|
||||
location.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue