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:
parent
4c6e4986a0
commit
c47c549f1e
@ -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
|
||||
*/
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user