Commit 11e059d7 authored by Clement Ho's avatar Clement Ho

Use common form.js

parent dc746510
...@@ -310,12 +310,12 @@ import Activities from './activities'; ...@@ -310,12 +310,12 @@ import Activities from './activities';
.catch(fail); .catch(fail);
break; break;
case 'snippets:create': case 'snippets:create':
import('./pages/snippets/create') import('./pages/snippets/new')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
break; break;
case 'snippets:update': case 'snippets:update':
import('./pages/snippets/update') import('./pages/snippets/edit')
.then(callDefault) .then(callDefault)
.catch(fail); .catch(fail);
break; break;
......
import GLForm from '~/gl_form'; import form from '../form';
import ZenMode from '~/zen_mode';
export default () => { export default form;
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
};
import GLForm from '~/gl_form'; import form from '../form';
import ZenMode from '~/zen_mode';
export default () => { export default form;
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
};
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