diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 21:18:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 21:18:33 +0300 |
commit | f64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch) | |
tree | a2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /app/assets/javascripts/milestone.js | |
parent | bfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff) |
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'app/assets/javascripts/milestone.js')
-rw-r--r-- | app/assets/javascripts/milestone.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/assets/javascripts/milestone.js b/app/assets/javascripts/milestone.js index f249fef5ea4..280613bda49 100644 --- a/app/assets/javascripts/milestone.js +++ b/app/assets/javascripts/milestone.js @@ -2,7 +2,6 @@ import $ from 'jquery'; import { deprecatedCreateFlash as flash } from './flash'; import axios from './lib/utils/axios_utils'; import { __ } from './locale'; -import { mouseenter, debouncedMouseleave, togglePopover } from './shared/popover'; export default class Milestone { constructor() { @@ -43,30 +42,4 @@ export default class Milestone { .catch(() => flash(__('Error loading milestone tab'))); } } - - static initDeprecationMessage() { - const deprecationMesssageContainer = document.querySelector( - '.js-milestone-deprecation-message', - ); - - if (!deprecationMesssageContainer) return; - - const deprecationMessage = deprecationMesssageContainer.querySelector( - '.js-milestone-deprecation-message-template', - ).innerHTML; - const $popover = $('.js-popover-link', deprecationMesssageContainer); - const hideOnScroll = togglePopover.bind($popover, false); - - $popover - .popover({ - content: deprecationMessage, - html: true, - placement: 'bottom', - }) - .on('mouseenter', mouseenter) - .on('mouseleave', debouncedMouseleave()) - .on('show.bs.popover', () => { - window.addEventListener('scroll', hideOnScroll, { once: true }); - }); - } } |