2018-05-09 12:01:36 +05:30
|
|
|
import $ from 'jquery';
|
2021-06-08 01:23:25 +05:30
|
|
|
import initDatePicker from '~/behaviors/date_picker';
|
2018-03-17 18:26:18 +05:30
|
|
|
import GLForm from '../../gl_form';
|
2021-03-11 19:13:27 +05:30
|
|
|
import ZenMode from '../../zen_mode';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
export default (initGFM = true) => {
|
|
|
|
new ZenMode(); // eslint-disable-line no-new
|
2021-06-08 01:23:25 +05:30
|
|
|
initDatePicker();
|
|
|
|
|
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,
|
2021-01-29 00:20:46 +05:30
|
|
|
vulnerabilities: initGFM,
|
2018-11-08 19:23:39 +05:30
|
|
|
});
|
2018-03-17 18:26:18 +05:30
|
|
|
};
|