Fixes list view/detail view

-Fix list view ID references, which was causing args.context undefined
 errors
This commit is contained in:
Brian Federle 2011-12-07 15:10:39 -08:00
parent a08768112f
commit 2ae4e50a9a
3 changed files with 5 additions and 5 deletions

View File

@ -77,9 +77,11 @@
},
sections: {
networks: {
id: 'networks',
type: 'select',
title: 'Networks',
listView: {
id: 'networks',
fields: {
name: { label: 'Name' },
zonename: { label: 'Zone' },

View File

@ -2780,7 +2780,7 @@
type: 'select',
title: 'Physical Resources',
listView: {
id: 'zones',
id: 'physicalResources',
label: 'Physical Resources',
fields: {
name: { label: 'Zone' },

View File

@ -1060,14 +1060,12 @@
}
}
if (section) {
if ($switcher && $switcher.find('option').size() == 1) {
listViewData = args.sections[
$switcher.find('select').val()
].listView;
if (listViewData.id != 'zones') {
args.activeSection = listViewData.id;
}
args.activeSection = listViewData.id;
}
// Add panel controls