debian-mirror-gitlab/app/assets/javascripts/pages/admin/projects/index.js

10 lines
333 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import ProjectsList from '../../../projects_list';
import NamespaceSelect from '../../../namespace_select';
2018-03-27 19:54:05 +05:30
document.addEventListener('DOMContentLoaded', () => {
2018-03-17 18:26:18 +05:30
new ProjectsList(); // eslint-disable-line no-new
document.querySelectorAll('.js-namespace-select')
.forEach(dropdown => new NamespaceSelect({ dropdown }));
2018-03-27 19:54:05 +05:30
});