|
1391 |
if (this._tree) { |
1391 |
if (this._tree) { |
1392 |
// the tree view (navigation, DHCP, DNS) might contain containers (e.g. also underneath of a superordinate!) |
1392 |
// the tree view (navigation, DHCP, DNS) might contain containers (e.g. also underneath of a superordinate!) |
1393 |
// we need to set the currently selected container if it's not a superordinate |
1393 |
// we need to set the currently selected container if it's not a superordinate |
1394 |
var path = this._tree.get('path'); |
1394 |
var path = lang.clone(this._tree.get('path')); |
1395 |
if (path.length) { |
1395 |
if (path.length) { |
1396 |
values.container = path[path.length - 1].id; |
1396 |
values.container = path[path.length - 1].id; |
1397 |
values.superordinate = path[path.length - 1].id; |
|
|
1398 |
if (!path[path.length -1].$isSuperordinate$) { |
1399 |
// a regular container is selected in the tree (which might be underneath of a superordinate) |
1400 |
delete values.superordinate; |
1401 |
} |
1402 |
} |
1397 |
} |
1403 |
} |
1398 |
} |
1404 |
if (values.superordinate) { |
1399 |
if (values.superordinate) { |