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

16 lines
487 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-07-07 11:18:12 +05:30
import initAvatarPicker from '~/avatar_picker';
2019-12-26 22:10:19 +05:30
import GroupPathValidator from './group_path_validator';
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();
new Group(); // eslint-disable-line no-new
2019-07-07 11:18:12 +05:30
initAvatarPicker();
2018-03-27 19:54:05 +05:30
});