mirror of https://github.com/apache/cloudstack.git
WIP: Add view all button to NIC
This commit is contained in:
parent
df0039368b
commit
29f9137e2d
|
|
@ -1242,6 +1242,10 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
viewAll: {
|
||||
path: 'network.ipAddresses',
|
||||
attachTo: 'ipaddress'
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url:createURL("listVirtualMachines&details=nics&id=" + args.context.instances[0].id),
|
||||
|
|
|
|||
|
|
@ -1034,6 +1034,16 @@
|
|||
actionFilter: actionFilter
|
||||
}
|
||||
).appendTo($tabContent);
|
||||
|
||||
if (tabData.viewAll) {
|
||||
$tabContent.find('tr')
|
||||
.filter('.' + tabData.viewAll.attachTo).find('td.value')
|
||||
.append(
|
||||
$('<div>').addClass('view-all').append(
|
||||
$('<span>').html('View all IP Addresses')
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue