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.
This commit is contained in:
parent
cf67c361ec
commit
60c1fccd75
|
|
@ -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