Reset tabs for not conserved
This commit is contained in:
@@ -77,7 +77,8 @@ export class NotConserved {
|
||||
this.images = record.images;
|
||||
imageContainer.innerHTML = this.renderImages();
|
||||
gallery('not-conserved-gallery', this.images);
|
||||
}
|
||||
} else
|
||||
imageContainer.innerHTML = '<p class="has-text-centered">Nessuna risorsa visuale disponibile</p>';
|
||||
}
|
||||
|
||||
async biblio(recordId) {
|
||||
|
||||
@@ -161,6 +161,9 @@ UI.openSiteModal = function (data, selector) {
|
||||
*/
|
||||
UI.openNotConserModal = function (data, selector) {
|
||||
const modal = document.querySelector(selector);
|
||||
let dataTabs = modal.querySelectorAll('.data-tabs');
|
||||
// Reset data tabs content
|
||||
for (let tab of dataTabs) tab.innerHTML = '';
|
||||
|
||||
let notConserved = new NotConserved();
|
||||
notConserved.siteData = data;
|
||||
|
||||
Reference in New Issue
Block a user