new UI - fix a bug: curly brackets was missing.

This commit is contained in:
Jessica Wang 2010-11-24 16:29:51 -08:00
parent eabad148e8
commit 0096dd03f2
2 changed files with 4 additions and 2 deletions

View File

@ -205,9 +205,10 @@ function diskOfferingJsonToDetailsTab() {
async: false,
success: function(json) {
var items = json.listdiskofferingsresponse.diskoffering;
if(items != null && items.length > 0)
if(items != null && items.length > 0) {
jsonObj = items[0];
$midmenuItem1.data("jsonObj", jsonObj);
}
}
});

View File

@ -214,9 +214,10 @@ function serviceOfferingJsonToDetailsTab() {
async: false,
success: function(json) {
var items = json.listserviceofferingsresponse.serviceoffering;
if(items != null && items.length > 0)
if(items != null && items.length > 0) {
jsonObj = items[0];
$midmenuItem1.data("jsonObj", jsonObj);
}
}
});