diff options
author | Filipa Lacerda <lacerda.filipa@gmail.com> | 2017-03-03 10:36:23 +0000 |
---|---|---|
committer | Filipa Lacerda <lacerda.filipa@gmail.com> | 2017-03-03 10:36:23 +0000 |
commit | 320ef318f874e15fd5d16e2da6374e8e82abd2b2 (patch) | |
tree | efcd9a0b6b852389f3e4cbe6fc01f53ac49b4743 | |
parent | 859a9cd9a65a2b862145efafd8716613fda29cd7 (diff) | |
parent | 0385b161de1309e60d060b0262e8a84cf071af51 (diff) | |
download | gitlab-ce-320ef318f874e15fd5d16e2da6374e8e82abd2b2.tar.gz |
Merge branch 'tooltip-hide-on-scroll' into 'master'
Hides the tooltip on scroll
See merge request !9653
-rw-r--r-- | app/assets/javascripts/application.js | 4 | ||||
-rw-r--r-- | changelogs/unreleased/tooltip-hide-on-scroll.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 4c24d35b5bb..e0ee698a8ff 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -231,6 +231,10 @@ require('es6-promise').polyfill(); var bootstrapBreakpoint = bp.getBreakpointSize(); var fitSidebarForSize; + $(document).on('scroll', function() { + $('.has-tooltip').tooltip('hide'); + }); + // Set the default path for all cookies to GitLab's root directory Cookies.defaults.path = gon.relative_url_root || '/'; diff --git a/changelogs/unreleased/tooltip-hide-on-scroll.yml b/changelogs/unreleased/tooltip-hide-on-scroll.yml new file mode 100644 index 00000000000..cd81d303330 --- /dev/null +++ b/changelogs/unreleased/tooltip-hide-on-scroll.yml @@ -0,0 +1,4 @@ +--- +title: Fixed tooltip remaining after scrolling the page +merge_request: +author: |