debian-mirror-gitlab/app/assets/javascripts/pages/groups/new/index.js

17 lines
462 B
JavaScript
Raw Normal View History

2019-12-26 22:10:19 +05:30
import $ from 'jquery';
2018-03-17 18:26:18 +05:30
import BindInOut from '~/behaviors/bind_in_out';
import Group from '~/group';
2019-12-26 22:10:19 +05:30
import GroupPathValidator from './group_path_validator';
2020-06-23 00:09:42 +05:30
import initFilePickers from '~/file_pickers';
2018-03-17 18:26:18 +05:30
2018-03-27 19:54:05 +05:30
document.addEventListener('DOMContentLoaded', () => {
2019-12-26 22:10:19 +05:30
const parentId = $('#group_parent_id');
if (!parentId.val()) {
new GroupPathValidator(); // eslint-disable-line no-new
}
2018-03-17 18:26:18 +05:30
BindInOut.initAll();
2020-06-23 00:09:42 +05:30
initFilePickers();
return new Group();
2018-03-27 19:54:05 +05:30
});