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"

This commit is contained in:
Jessica Wang 2012-03-30 17:25:21 -07:00
parent 74754f0a56
commit a62fb3a1f9
1 changed files with 2 additions and 1 deletions

View File

@ -859,7 +859,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