From f0dce4283d8ffbf5075784b026955c8840d47e5b Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Wed, 19 Feb 2014 09:32:23 +0000 Subject: bitbake: toaster: Hide the applied filter tooltip on click When you apply a filter, we show you a tooltip on hover that tells you which filter you have applied and allows you to clear it quickly. That tooltip does not disappear straight away if you click on the filter button: it hangs in there because the tooltip has a delay specified on hide. The effect is quite annoying. This change to main.js makes sure the tooltip disappears when you click the filter button. (Bitbake rev: 5928d2f3cba4524966a34d8c845a04627b9b310b) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/static/js/main.js') diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index dc96564b17..ce4f578112 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js @@ -44,6 +44,11 @@ $(document).ready(function() { // enable tooltips for applied filters $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom', delay:{hide:1500}}); + // hide applied filter tooltip when you click on the filter button + $('th a.btn-primary').click(function () { + $('.tooltip').hide(); + }); + // enable help information tooltip $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); -- cgit v1.2.3-54-g00ecf