gitlab-org--gitlab-foss/app/assets/javascripts/pages/snippets/form.js

18 lines
388 B
JavaScript
Raw Normal View History

import $ from 'jquery';
2018-01-11 07:46:13 -05:00
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
2018-01-11 12:47:17 -05:00
export default () => {
2018-06-21 07:54:17 -04:00
// eslint-disable-next-line no-new
new GLForm($('.snippet-form'), {
members: false,
issues: false,
mergeRequests: false,
epics: false,
2018-06-21 07:54:17 -04:00
milestones: false,
labels: false,
snippets: false,
2018-06-21 07:54:17 -04:00
});
2018-01-11 07:46:13 -05:00
new ZenMode(); // eslint-disable-line no-new
2018-01-11 12:51:12 -05:00
};