debian-mirror-gitlab/app/assets/javascripts/pages/projects/compare/show/index.js
2018-10-15 14:42:47 +05:30

10 lines
364 B
JavaScript

import Diff from '~/diff';
import initChangesDropdown from '~/init_changes_dropdown';
import GpgBadges from '~/gpg_badges';
document.addEventListener('DOMContentLoaded', () => {
new Diff(); // eslint-disable-line no-new
const paddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
GpgBadges.fetch();
});