cloudstack 3.0 UI - domain page - fix a JS error that appears after a new domain is created - "context[$detailView.data('view-args').section] is undefined" [reviewed-by: Brian]

This commit is contained in:
Jessica Wang 2012-03-30 17:21:35 -07:00
parent b192bfc374
commit e2196dd961
1 changed files with 2 additions and 1 deletions

View File

@ -857,7 +857,8 @@
var tabFilter = options.tabFilter;
var context = options.context ? options.context : {};
if (options.newData) {
if(options.newData &&
($detailView.data('view-args').section != null && context[$detailView.data('view-args').section] != null && context[$detailView.data('view-args').section].length > 0)) {
$.extend(
context[$detailView.data('view-args').section][0],
options.newData