mirror of https://github.com/apache/cloudstack.git
new UI - Global Settings page - update middle menu and right panel after global setting is changed.
This commit is contained in:
parent
54cb20e228
commit
3191ccd011
|
|
@ -26,13 +26,21 @@ function doUpdateGlobalSetting() {
|
|||
$.ajax({
|
||||
data: createURL("command=updateConfiguration&name="+todb(name)+"&value="+todb(value)+"&response=json"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
$detailsTab.find("#value").text(value);
|
||||
|
||||
//no embedded object returned, so....
|
||||
jsonObj.value = value;
|
||||
|
||||
globalSettingToMidmenu(jsonObj, $("#"+globalSettingGetMidmenuId(jsonObj)));
|
||||
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];
|
||||
}
|
||||
});
|
||||
var $midmenuItem1 = $("#"+globalSettingGetMidmenuId(jsonObj));
|
||||
globalSettingToMidmenu(jsonObj, $midmenuItem1);
|
||||
globalSettingToRigntPanel($midmenuItem1);
|
||||
|
||||
$("#dialog_alert_restart_management_server").dialog("open");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue