bug #3604: Reset the nice info if the vm has no nics

This commit is contained in:
Daniel Molina committed 2015-02-24 16:08:28 +01:00
1 parent 196265c121
commit 3b63da448c
1 file changed
+1 -4
+1 -4
View File
@@ -2149,10 +2149,7 @@ function printNics(vm_info){
nics = [vm_info.TEMPLATE.NIC]
if (!nics.length){
html += '\
<tr id="no_nics_tr">\
<td colspan="7">' + tr("No nics to show") + '</td>\
</tr>';
$("#vms-tab").data("nic_dt_data", []);
}
else {
var nic_dt_data = [];