From d095bb68ecabb59f79bc1d5078e1f1321e79757f Mon Sep 17 00:00:00 2001 From: Belen Barros <[email protected]> Date: Tue, 4 Feb 2014 15:23:10 +0000 Subject: [PATCH] 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. Signed-off-by: Belen Barros <[email protected]> --- bitbake/lib/toaster/toastergui/static/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index 52e0084..4406b18 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js @@ -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'}); -- 1.7.9.5
_______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
