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.
Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
/* 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'});