From 47cc0ffe6be5912c0c8bd4dd668f92dea4f3b642 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 8 Nov 2010 18:29:00 -0800 Subject: [PATCH] new UI - global settings page - related UI change after API bug 6506 is fixed. --- ui/scripts/cloud.core.globalsetting.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/scripts/cloud.core.globalsetting.js b/ui/scripts/cloud.core.globalsetting.js index 4f30e2c75d0..88bfabbe099 100644 --- a/ui/scripts/cloud.core.globalsetting.js +++ b/ui/scripts/cloud.core.globalsetting.js @@ -105,17 +105,8 @@ function doEditGlobalSetting2($readonlyFields, $editFields) { data: createURL("command=updateConfiguration&name="+todb(name)+"&value="+todb(value)), dataType: "json", async: false, - success: function(json) { - //call listConfigurations before bug 6506("What updateConfiguration API returns should include an embedded object") is fixed. - var jsonObj; - $.ajax({ - data: createURL("command=listConfigurations&name="+name), - dataType: "json", - async: false, - success: function(json) { - jsonObj = json.listconfigurationsresponse.configuration[0]; - } - }); + success: function(json) { + var jsonObj = json.updateconfigurationresponse.configuration; globalsettingJSONToTemplate(jsonObj, $thisRow); $editFields.hide();