Add prehistoric assets
This commit is contained in:
@@ -7,6 +7,7 @@ import { SiteSurveys } from './components/SiteSurveys.js';
|
||||
import { SiteMedia } from './components/SiteMedia.js';
|
||||
import { NotConservedSheet } from './components/NotConservedSheet.js';
|
||||
import { Finding } from './components/Finding.js';
|
||||
import { Prehistoric } from './components/Prehistoric.js';
|
||||
|
||||
/**
|
||||
* @namespace UI
|
||||
@@ -198,6 +199,23 @@ UI.openFindingModal = async function (data, selector) {
|
||||
}
|
||||
modal.classList.add('is-active');
|
||||
}
|
||||
/**
|
||||
* @todo Biblio
|
||||
* @param {object} data The data retrieved from the DB to display as modal content
|
||||
* @param {string} selector The modal selector
|
||||
*/
|
||||
UI.openPrehistModal = async function (data, selector) {
|
||||
const modal = document.querySelector(selector);
|
||||
|
||||
let prehistoric = new Prehistoric();
|
||||
prehistoric.data = data;
|
||||
|
||||
// For Stimulus biblio_controller
|
||||
//window.Biblio = prehistoric;
|
||||
|
||||
modal.querySelector('#prehist-sheet').innerHTML = await prehistoric.render();
|
||||
modal.classList.add('is-active');
|
||||
}
|
||||
/**
|
||||
* @param {string} menuListSel Menu list selector
|
||||
* @param {L.Map} map
|
||||
|
||||
Reference in New Issue
Block a user