debian-mirror-gitlab/app/assets/javascripts/issues/form.js

25 lines
780 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
/* eslint-disable no-new */
2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2022-01-26 12:08:38 +05:30
import IssuableForm from 'ee_else_ce/issuable/issuable_form';
2021-03-11 19:13:27 +05:30
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
2020-01-01 13:55:28 +05:30
import GLForm from '~/gl_form';
2022-01-26 12:08:38 +05:30
import { initTitleSuggestions, initTypePopover } from '~/issues/new';
import LabelsSelect from '~/labels/labels_select';
import MilestoneSelect from '~/milestones/milestone_select';
import IssuableTemplateSelectors from '~/issuable/issuable_template_selectors';
2018-03-17 18:26:18 +05:30
export default () => {
new ShortcutsNavigation();
2018-11-08 19:23:39 +05:30
new GLForm($('.issue-form'));
2018-03-17 18:26:18 +05:30
new IssuableForm($('.issue-form'));
new LabelsSelect();
new MilestoneSelect();
2019-12-21 20:55:43 +05:30
new IssuableTemplateSelectors({
warnTemplateOverride: true,
});
2019-02-15 15:39:39 +05:30
2022-01-26 12:08:38 +05:30
initTitleSuggestions();
initTypePopover();
2018-03-17 18:26:18 +05:30
};