mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Feature #3175: fix multiple choice table bug
This commit is contained in:
1 parent
a1b6ff59a2
commit
8542e8c21c
1 file changed
+10
-4
@@ -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> ');
|
||||
|
||||
|
||||
Reference in new issue
Block a user