mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #3175: fix multiple choice table bug
This commit is contained in:
parent
a1b6ff59a2
commit
8542e8c21c
@ -6584,15 +6584,21 @@ function setupResourceTableSelect(section, context_id, options) {
|
||||
if( ids[row_id] ){
|
||||
delete ids[row_id];
|
||||
|
||||
$("td", row).removeClass('markrowchecked');
|
||||
$('input.check_item', row).removeAttr('checked');
|
||||
// Happens if row is not yet rendered (i.e. higher unvisited page)
|
||||
if (row != undefined){
|
||||
$("td", row).removeClass('markrowchecked');
|
||||
$('input.check_item', row).removeAttr('checked');
|
||||
}
|
||||
|
||||
$('#selected_ids_row_'+context_id+' span[row_id="'+row_id+'"]', section).remove();
|
||||
} else {
|
||||
ids[row_id] = true;
|
||||
|
||||
$("td", row).addClass('markrowchecked');
|
||||
$('input.check_item', row).attr('checked','checked');
|
||||
// Happens if row is not yet rendered (i.e. higher unvisited page)
|
||||
if (row != undefined){
|
||||
$("td", row).addClass('markrowchecked');
|
||||
$('input.check_item', row).attr('checked','checked');
|
||||
}
|
||||
|
||||
$('#selected_ids_row_'+context_id, section).append('<span row_id="'+row_id+'" class="radius label">'+row_name+' <span class="fa fa-times blue"></span></span> ');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user