new UI - global settings page - related UI change after API bug 6506 is fixed.

This commit is contained in:
Jessica Wang 2010-11-08 18:29:00 -08:00
parent b628ba2c1c
commit 47cc0ffe6b
1 changed files with 2 additions and 11 deletions

View File

@ -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();