debian-mirror-gitlab/app/assets/javascripts/shared/milestones/form.js

21 lines
554 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2018-03-17 18:26:18 +05:30
import ZenMode from '../../zen_mode';
import DueDateSelectors from '../../due_date_select';
import GLForm from '../../gl_form';
export default (initGFM = true) => {
new ZenMode(); // eslint-disable-line no-new
new DueDateSelectors(); // eslint-disable-line no-new
2018-11-08 19:23:39 +05:30
// eslint-disable-next-line no-new
new GLForm($('.milestone-form'), {
emojis: true,
members: initGFM,
issues: initGFM,
mergeRequests: initGFM,
epics: initGFM,
milestones: initGFM,
labels: initGFM,
2018-12-05 23:21:45 +05:30
snippets: initGFM,
2018-11-08 19:23:39 +05:30
});
2018-03-17 18:26:18 +05:30
};