Initialise the Bootstrap tooltips for any anchor tag inside
a table heading with the btn-primary class applied. This
effectively styles the title attribute of the applied
filters to look like all other Toaster tooltips.

Signed-off-by: Belen Barros <[email protected]>
---
 bitbake/lib/toaster/toastergui/static/js/main.js |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js
b/bitbake/lib/toaster/toastergui/static/js/main.js
index 10ac92d..7d195a2 100644
--- a/bitbake/lib/toaster/toastergui/static/js/main.js
+++ b/bitbake/lib/toaster/toastergui/static/js/main.js
@@ -17,10 +17,13 @@ $(document).ready(function() {
     
     // enable popovers in any table cells that contain an anchor with the
     // .btn class applied
-       $('td > a.btn').popover({html:true, container:'body', placement:
'left'});
+       $('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'});
     
        // enable help information tooltip
-    $(".get-help").tooltip({ container: 'body', html: true, delay: {show:
300} });
+    $(".get-help").tooltip({container:'body', html:true,
delay:{show:300}});
     
        // show help bubble only on hover inside tables
        $(".hover-help").css("visibility","hidden");
-- 
1.7.9.5

_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to