diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-02-19 09:32:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:23:59 -0700 |
commit | f0dce4283d8ffbf5075784b026955c8840d47e5b (patch) | |
tree | ba66f750dfc991c38643abbb563f01f6e2af5652 /bitbake | |
parent | e01f79042fe915c91c4bb52f7983288e9fc78431 (diff) | |
download | poky-f0dce4283d8ffbf5075784b026955c8840d47e5b.tar.gz |
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 <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
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() { | |||
44 | // enable tooltips for applied filters | 44 | // enable tooltips for applied filters |
45 | $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom', delay:{hide:1500}}); | 45 | $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom', delay:{hide:1500}}); |
46 | 46 | ||
47 | // hide applied filter tooltip when you click on the filter button | ||
48 | $('th a.btn-primary').click(function () { | ||
49 | $('.tooltip').hide(); | ||
50 | }); | ||
51 | |||
47 | // enable help information tooltip | 52 | // enable help information tooltip |
48 | $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); | 53 | $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); |
49 | 54 | ||