blob: f7084dfc0e867c89edcec32f86629418d14c2001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { showGitVersion } from './modules/git-info.js';
import { ThemesManager } from './modules/themes-manager.js';
window.AJAX.registerTeardown('home.js', () => {
const themesModal = document.getElementById('themesModal');
if (themesModal) {
themesModal.removeEventListener('show.bs.modal', ThemesManager.handleEvent);
}
});
window.AJAX.registerOnload('home.js', () => {
const themesModal = document.getElementById('themesModal');
if (themesModal) {
themesModal.addEventListener('show.bs.modal', ThemesManager.handleEvent);
}
showGitVersion();
});
|