1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

bug #3569: Support does not work if Marketplace is not enabled

This commit is contained in:
Daniel Molina 2015-02-13 16:44:29 +01:00
parent 4c6e4986a0
commit c47c549f1e
2 changed files with 15 additions and 15 deletions

View File

@ -562,21 +562,6 @@ function updateMarketInfo(request,app){
});
}
/*
* onlyOneCheckboxListener: Only one box can be checked
*/
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);
});
}
/*
* Document
*/

View File

@ -1387,6 +1387,21 @@ function tableCheckboxesListener(dataTable, custom_context){
});
}
/*
* onlyOneCheckboxListener: Only one box can be checked
*/
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);
});
}
// Updates a data_table, with a 2D array containing the new values
// Does a partial redraw, so the filter and pagination are kept
function updateView(item_list,dataTable){