Project

General

Profile

« Previous | Next » 

Revision 5b489c77

Added by Tomer Brisker over 7 years ago

Fixes #17627 - remove tooltips after clicking back

Turbolinks will keep the page cached as it is when a link with a tooltip
is clicked, so that clicking back will show the page with the tooltip
still active. This will make sure any tooltips are hidden when a page is
loaded from turbolinks' cache.
(cherry picked from commit ccc3a646485cf4a6fba61d2308188abbcc5777a5)

View differences:

webpack/assets/javascripts/foreman_tools.js
}
});
el.find('*[title]').not('*[rel]').tooltip({ container: 'body' });
$(document).on('page:restore', () => {$('.tooltip.in').remove();});
}

Also available in: Unified diff