Commit c0dfd967 authored by Clement Ho's avatar Clement Ho

Code improvements

parent 0a25cdd7
......@@ -346,6 +346,7 @@ import Activities from './activities';
import('./pages/projects/show')
.then(callDefault)
.catch(fail);
shortcut_handler = true;
break;
case 'projects:edit':
import('./pages/projects/edit')
......
import ZenMode from '~/zen_mode';
import GLForm from '~/gl_form';
export default function () {
export default function ($formEl) {
new ZenMode(); // eslint-disable-line no-new
new GLForm($('.release-form'), true); // eslint-disable-line no-new
new GLForm($formEl, true); // eslint-disable-line no-new
}
import initForm from '~/pages/projects/init_form';
export default initForm($('.release-form'));
import initSettingsPanels from '~/settings_panels';
export default function () {
// Initialize expandable settings panels
initSettingsPanels();
}
export default initSettingsPanels;
......@@ -6,7 +6,7 @@ import BlobViewer from '~/blob/viewer/index';
import Activities from '~/activities';
import { ajaxGet } from '~/lib/utils/common_utils';
export default function () {
export default () => {
new ShortcutsNavigation(); // eslint-disable-line no-new
new NotificationsForm(); // eslint-disable-line no-new
new UserCallout({ // eslint-disable-line no-new
......
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
import initForm from '~/pages/projects/init_form';
export default function () {
new GLForm($('.snippet-form'), true); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
}
export default initForm($('.snippet-form'));
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
import initForm from '~/pages/projects/init_form';
export default function () {
new GLForm($('.snippet-form'), true); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
}
export default initForm($('.snippet-form'));
import GLForm from '~/gl_form';
import ZenMode from '~/zen_mode';
import initSnippets from '~/pages/projects/snippets/init_snippets';
export default function () {
new GLForm($('.snippet-form'), true); // eslint-disable-line no-new
new ZenMode(); // eslint-disable-line no-new
}
export default initSnippets;
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