mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1908:Specified event isn't removed from the list after deletion
This commit is contained in:
parent
8ff24fcb18
commit
7b0b2cdc84
@ -257,8 +257,6 @@
|
||||
}
|
||||
|
||||
});
|
||||
$(window).trigger('cloudStack.fullRefresh');
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -304,7 +304,16 @@
|
||||
}
|
||||
|
||||
if($detailView.data("list-view-row") != null) {
|
||||
$detailView.data("list-view-row").remove();
|
||||
var $row = $detailView.data('list-view-row');
|
||||
var $tbody = $row.closest('tbody');
|
||||
|
||||
$row.remove();
|
||||
if(!$tbody.find('tr').size()) {
|
||||
$("<tr>").addClass('empty').append(
|
||||
$("<td>").html(_l('label.no.data'))
|
||||
).appendTo($tbody);
|
||||
}
|
||||
$tbody.closest('table').dataTable('refresh');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user