debian-mirror-gitlab/app/assets/javascripts/init_changes_dropdown.js

13 lines
380 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2020-11-24 15:15:51 +05:30
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
2021-03-11 19:13:27 +05:30
import { stickyMonitor } from './lib/utils/sticky';
2017-09-10 17:25:29 +05:30
2021-03-08 18:12:59 +05:30
export default (stickyTop) => {
2018-03-17 18:26:18 +05:30
stickyMonitor(document.querySelector('.js-diff-files-changed'), stickyTop);
2017-09-10 17:25:29 +05:30
2020-11-24 15:15:51 +05:30
initDeprecatedJQueryDropdown($('.js-diff-stats-dropdown'), {
2017-09-10 17:25:29 +05:30
filterable: true,
remoteFilter: false,
});
};