Commit bba41263 authored by Mike Greiling's avatar Mike Greiling

migrate projects:compare:show to static bundle

parent 92168708
...@@ -48,11 +48,6 @@ var Dispatcher; ...@@ -48,11 +48,6 @@ var Dispatcher;
case 'projects:issues:show': case 'projects:issues:show':
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:compare:show':
import('./pages/projects/compare/show')
.then(callDefault)
.catch(fail);
break;
case 'projects:branches:new': case 'projects:branches:new':
import('./pages/projects/branches/new') import('./pages/projects/branches/new')
.then(callDefault) .then(callDefault)
......
import Diff from '~/diff'; import Diff from '~/diff';
import initChangesDropdown from '~/init_changes_dropdown'; import initChangesDropdown from '~/init_changes_dropdown';
export default () => { document.addEventListener('DOMContentLoaded', () => {
new Diff(); // eslint-disable-line no-new new Diff(); // eslint-disable-line no-new
const paddingTop = 16; const paddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop); initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
}; });
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