WIP: Add view all button to NIC

This commit is contained in:
Brian Federle 2013-02-22 15:53:48 -08:00
parent df0039368b
commit 29f9137e2d
2 changed files with 14 additions and 0 deletions

View File

@ -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),

View File

@ -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;