diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-07 14:21:12 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-09 16:40:27 +0100 |
commit | c76091804ff3f81a04b3c0579e4c84f4c2234ed8 (patch) | |
tree | 00d0cfaad3f9bb7db2afe7f9a7b08a4268c6928f /app/assets/javascripts/merge_request_tabs.js | |
parent | 8fbbd3f27a5f69cfc9f4ddd05e46498c9e5ccf60 (diff) | |
download | gitlab-ce-c76091804ff3f81a04b3c0579e4c84f4c2234ed8.tar.gz |
Fix the sticky changes bar on commits pagefixed-sticky-stats-box-commit-view
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index 4ffd71d9de5..0294da3f20d 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -7,7 +7,7 @@ import Cookies from 'js-cookie'; import './breakpoints'; import './flash'; import BlobForkSuggestion from './blob/blob_fork_suggestion'; -import stickyMonitor from './lib/utils/sticky'; +import initChangesDropdown from './init_changes_dropdown'; /* eslint-disable max-len */ // MergeRequestTabs @@ -267,9 +267,7 @@ import stickyMonitor from './lib/utils/sticky'; const $container = $('#diffs'); $container.html(data.html); - this.initChangesDropdown(); - - stickyMonitor(document.querySelector('.js-diff-files-changed')); + initChangesDropdown(); if (typeof gl.diffNotesCompileComponents !== 'undefined') { gl.diffNotesCompileComponents(); @@ -319,13 +317,6 @@ import stickyMonitor from './lib/utils/sticky'; }); } - initChangesDropdown() { - $('.js-diff-stats-dropdown').glDropdown({ - filterable: true, - remoteFilter: false, - }); - } - // Show or hide the loading spinner // // status - Boolean, true to show, false to hide |