bitbake: toaster: Make "Edit columns" multiselect

Twitter Boostrap elements with the dropdown-menu class
close by default once a selection is performed. Such
behaviour is not appropriate for our "Edit columns" menu,
since users might want to check / uncheck several
columns.

This patch adds a call to the stopPropagation() jQuery
function to main.js to stop the "Edit columns" menu
from closing every time you change a checkbox.

(Bitbake rev: c2e43750bf0913523a1abcb2c8bf97b764da2524)

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Belen Barros 2014-02-04 15:23:10 +00:00 committed by Richard Purdie
parent 97c81e089f
commit 2e3fee7291
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ $(document).ready(function() {
/* Belen's additions */
// turn Edit columns dropdown into a multiselect menu
$('.dropdown-menu input, .dropdown-menu label').click(function(e) {
e.stopPropagation();
});
// 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'});