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

13 lines
378 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2018-11-08 19:23:39 +05:30
import { stickyMonitor } from './lib/utils/sticky';
2020-11-24 15:15:51 +05:30
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
2017-09-10 17:25:29 +05:30
2018-12-13 13:39:08 +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,
});
};