mirror of https://github.com/apache/cloudstack.git
UI: detail view
Support dynamically updating context on detail view load, to support cases where certain context items are required by other elements loaded, but may not be present in the browser history. Conflicts: ui/tests/test.detailView.js
This commit is contained in:
parent
ee47a42a68
commit
0991652f4a
|
|
@ -868,6 +868,13 @@
|
|||
var removedTabs = [];
|
||||
var tabFilter = options.tabFilter;
|
||||
var context = options.context ? options.context : {};
|
||||
var updateContext = $detailView.data('view-args').updateContext;
|
||||
|
||||
if (updateContext) {
|
||||
$.extend($detailView.data('view-args').context, updateContext({
|
||||
context: $detailView.data('view-args').context
|
||||
}));
|
||||
}
|
||||
|
||||
if(options.newData &&
|
||||
($detailView.data('view-args').section != null && context[$detailView.data('view-args').section] != null && context[$detailView.data('view-args').section].length > 0)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue