mirror of https://github.com/apache/cloudstack.git
Fixes list view/detail view
-Fix list view ID references, which was causing args.context undefined errors
This commit is contained in:
parent
a08768112f
commit
2ae4e50a9a
|
|
@ -77,9 +77,11 @@
|
|||
},
|
||||
sections: {
|
||||
networks: {
|
||||
id: 'networks',
|
||||
type: 'select',
|
||||
title: 'Networks',
|
||||
listView: {
|
||||
id: 'networks',
|
||||
fields: {
|
||||
name: { label: 'Name' },
|
||||
zonename: { label: 'Zone' },
|
||||
|
|
|
|||
|
|
@ -2780,7 +2780,7 @@
|
|||
type: 'select',
|
||||
title: 'Physical Resources',
|
||||
listView: {
|
||||
id: 'zones',
|
||||
id: 'physicalResources',
|
||||
label: 'Physical Resources',
|
||||
fields: {
|
||||
name: { label: 'Zone' },
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue