提交 c0fdcb9b 编写于 作者: C Clement Ho

Code improvements

上级 80eb68e0
......@@ -575,7 +575,9 @@ import Activities from './activities';
import('./pages/admin/conversational_development_index/show').then(m => m.default()).catch(fail);
break;
case 'snippets:show':
import('./pages/snippets/show').then(callDefault).catch(fail);
import('./pages/snippets/show')
.then(callDefault)
.catch(fail);
break;
case 'import:fogbugz:new_user_map':
import('./pages/import/fogbugz/new_user_map').then(m => m.default()).catch(fail);
......
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
export default function () {
export default () => {
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 function () {
export default () => {
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 function () {
export default () => {
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 function () {
export default () => {
new GLForm($('.snippet-form'), false); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册