Commit cad87a05 authored by Clement Ho's avatar Clement Ho

Use common form.js

parent cedee61b
......@@ -346,12 +346,12 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
.catch(fail);
break;
case 'snippets:create':
import('./pages/snippets/create')
import('./pages/snippets/new')
.then(callDefault)
.catch(fail);
break;
case 'snippets:update':
import('./pages/snippets/update')
import('./pages/snippets/edit')
.then(callDefault)
.catch(fail);
break;
......
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
import form from '../form';
export default () => {
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
};
export default form;
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
import form from '../form';
export default () => {
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
};
export default form;
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
export default () => {
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment