From 4157c3849f1f8083b11ec3658b4f74b3e68dea2d Mon Sep 17 00:00:00 2001 From: Belen Barros Date: Mon, 3 Feb 2014 15:35:47 +0000 Subject: bitbake: toaster: Add clear filter button to filter tooltips This patch modifies the basetable_top.html template to add the 'Show all' button to the applied filter tooltip. It also adds a delay in the tooltip dismissal in main.js to allow users to click the button comfortably. The patch does not add the functionality to the button (when you click on it nothing happens). Someone else will need to add that in. (Bitbake rev: e39857162b5d91cc2f92843a9a14599bab369849) Signed-off-by: Belen Barros Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/main.js | 2 +- bitbake/lib/toaster/toastergui/templates/basetable_top.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index 52e0084095..032584d4e2 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js @@ -20,7 +20,7 @@ $(document).ready(function() { $('td > a.btn').popover({html:true, container:'body', placement:'left'}); // enable tooltips for applied filters - $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom'}); + $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom', delay:{hide:1500}}); // enable help information tooltip $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 67a1d103db..84c73a72e0 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -79,7 +79,7 @@ {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} {%if tc.ordericon%} {%endif%} {%if tc.filter%}
- +
{%endif%} {% endfor %} -- cgit v1.2.3-54-g00ecf