debian-mirror-gitlab/app/assets/javascripts/pages/projects/compare/show/index.js

11 lines
364 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Diff from '~/diff';
import initChangesDropdown from '~/init_changes_dropdown';
2018-10-15 14:42:47 +05:30
import GpgBadges from '~/gpg_badges';
2018-03-17 18:26:18 +05:30
2018-03-27 19:54:05 +05:30
document.addEventListener('DOMContentLoaded', () => {
2018-03-17 18:26:18 +05:30
new Diff(); // eslint-disable-line no-new
const paddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
2018-10-15 14:42:47 +05:30
GpgBadges.fetch();
2018-03-27 19:54:05 +05:30
});