2018-03-09 15:18:59 -05:00
|
|
|
import $ from 'jquery';
|
2018-06-05 22:17:47 -04:00
|
|
|
import { stickyMonitor } from './lib/utils/sticky';
|
2020-08-24 14:10:19 -04:00
|
|
|
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
|
2017-08-07 09:21:12 -04:00
|
|
|
|
2018-10-24 15:17:03 -04:00
|
|
|
export default stickyTop => {
|
2018-06-01 12:41:50 -04:00
|
|
|
stickyMonitor(document.querySelector('.js-diff-files-changed'), stickyTop);
|
2017-08-07 09:21:12 -04:00
|
|
|
|
2020-08-24 14:10:19 -04:00
|
|
|
initDeprecatedJQueryDropdown($('.js-diff-stats-dropdown'), {
|
2017-08-07 09:21:12 -04:00
|
|
|
filterable: true,
|
|
|
|
remoteFilter: false,
|
|
|
|
});
|
|
|
|
};
|