Always render physical networks as list view first

This commit is contained in:
bfederle 2012-03-20 13:58:10 -07:00
parent 464967294b
commit 4a9155df1b

View File

@ -279,8 +279,7 @@
response: { response: {
success: function(args) { success: function(args) {
var data = args.data; var data = args.data;
if (data.length > 1) {
// Render list view first
$chart.listView({ $chart.listView({
listView: $.extend(true, {}, cloudStack.sections.system.naas.networks.listView, { listView: $.extend(true, {}, cloudStack.sections.system.naas.networks.listView, {
dataProvider: function(args) { dataProvider: function(args) {
@ -306,12 +305,6 @@
}) })
}); });
$loading.remove(); $loading.remove();
} else {
renderChart({
$chart: $chart,
data: data[0]
});
}
} }
} }
}); });