summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBelen Barros <belen.barros.pena@intel.com>2014-02-04 15:23:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:53 +0000
commit2e3fee7291fd22918612d964485e8d282cbfe2f9 (patch)
tree21188a8cef4d9008c49964f3899a0ac39f574c6b /bitbake/lib
parent97c81e089ffec1fe11d1d0fa48fabd2e6d418eb9 (diff)
downloadpoky-2e3fee7291fd22918612d964485e8d282cbfe2f9.tar.gz
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js
index 032584d4e2..3710e59e92 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() {
15 15
16 /* Belen's additions */ 16 /* Belen's additions */
17 17
18 // turn Edit columns dropdown into a multiselect menu
19 $('.dropdown-menu input, .dropdown-menu label').click(function(e) {
20 e.stopPropagation();
21 });
22
18 // enable popovers in any table cells that contain an anchor with the 23 // enable popovers in any table cells that contain an anchor with the
19 // .btn class applied 24 // .btn class applied
20 $('td > a.btn').popover({html:true, container:'body', placement:'left'}); 25 $('td > a.btn').popover({html:true, container:'body', placement:'left'});