BigW Consortium Gitlab

Commit 11e059d7 by Clement Ho

Use common form.js

parent dc746510
......@@ -310,12 +310,12 @@ import Activities from './activities';
.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