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

27 lines
766 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';
2021-03-11 19:13:27 +05:30
import initFilePickers from '~/file_pickers';
2018-03-17 18:26:18 +05:30
import Group from '~/group';
2021-04-17 20:07:23 +05:30
import LinkedTabs from '~/lib/utils/bootstrap_linked_tabs';
2019-12-26 22:10:19 +05:30
import GroupPathValidator from './group_path_validator';
2018-03-17 18:26:18 +05:30
2021-04-29 21:17:54 +05:30
new GroupPathValidator(); // eslint-disable-line no-new
2021-01-29 00:20:46 +05:30
BindInOut.initAll();
initFilePickers();
2020-06-23 00:09:42 +05:30
2021-01-29 00:20:46 +05:30
new Group(); // eslint-disable-line no-new
2021-04-17 20:07:23 +05:30
const CONTAINER_SELECTOR = '.group-edit-container .nav-tabs';
const DEFAULT_ACTION = '#create-group-pane';
// eslint-disable-next-line no-new
new LinkedTabs({
defaultAction: DEFAULT_ACTION,
parentEl: CONTAINER_SELECTOR,
hashedTabs: true,
});
if (window.location.hash) {
$(CONTAINER_SELECTOR).find(`a[href="${window.location.hash}"]`).tab('show');
}