mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
28 lines
841 B
JavaScript
28 lines
841 B
JavaScript
import {ShowHide} from 'ChillMainAssets/lib/show_hide/show_hide.js';
|
|
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
let
|
|
linkedEntityContainer = document.querySelector('#linked-entity'),
|
|
personContainer = document.querySelector('#person-entity'),
|
|
thirdpartyContainer = document.querySelector('#thirdparty-entity'),
|
|
freetextContainer = document.querySelector('#freetext-entity')
|
|
;
|
|
if (null === linkedEntityContainer) {
|
|
return;
|
|
}
|
|
|
|
new ShowHide({
|
|
debug: true,
|
|
load_event: null,
|
|
froms: [linkedEntityContainer],
|
|
container: [personContainer, thirdpartyContainer, freetextContainer],
|
|
test: function(froms, event) {
|
|
if (event) {
|
|
console.log(event);
|
|
}
|
|
|
|
return true;
|
|
},
|
|
})
|
|
});
|