From 93cf59e652b4359f4d861a45031f86141167eec0 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 30 Jul 2013 16:06:17 +0200 Subject: [PATCH] bug #2217: If several marketplace appliances are selected, all are marked in blue, but only one checkbox is checked --- src/sunstone/public/js/plugins/marketplace-tab.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sunstone/public/js/plugins/marketplace-tab.js b/src/sunstone/public/js/plugins/marketplace-tab.js index 8b511dfc46..77dab8142b 100644 --- a/src/sunstone/public/js/plugins/marketplace-tab.js +++ b/src/sunstone/public/js/plugins/marketplace-tab.js @@ -280,7 +280,9 @@ function updateMarketInfo(request,app){ function onlyOneCheckboxListener(dataTable) { $('tbody input.check_item', dataTable).live("change", function(){ var checked = $(this).is(':checked'); + $('td', dataTable).removeClass('markrowchecked'); $('input.check_item:checked', dataTable).removeAttr('checked'); + $("td", $(this).closest('tr')).addClass('markrowchecked') $(this).attr('checked', checked); }); }