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:
Brian Federle 2012-04-05 15:42:58 -07:00
parent cf67c361ec
commit 60c1fccd75
1 changed files with 7 additions and 0 deletions

View File

@ -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)) {