From: Belen Barros Pena Date: Wed, 19 Feb 2014 09:32:23 +0000 (+0000) Subject: toaster: Hide the applied filter tooltip on click X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5928d2f3cba4524966a34d8c845a04627b9b310b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Belen Barros Pena --- diff --git a/lib/toaster/toastergui/static/js/main.js b/lib/toaster/toastergui/static/js/main.js index dc96564b174..ce4f5781124 100644 --- a/lib/toaster/toastergui/static/js/main.js +++ b/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}});