new UI - instance page - enable HA, disable HA - show info icon (successful or error) after action is complete.

This commit is contained in:
Jessica Wang 2010-10-09 16:02:23 -07:00
parent 2ff3b59077
commit d27d0e617a
1 changed files with 5 additions and 1 deletions

View File

@ -275,10 +275,14 @@ function doActionForMidMenu(id, $actionLink, apiCommand) {
async: false,
success: function(json) {
$midmenuItem1.find("#content").removeClass("inaction");
$midmenuItem1.find("#spinning_wheel").hide();
$midmenuItem1.find("#spinning_wheel").hide();
$midmenuItem1.find("#info_icon").removeClass("error").show();
$midmenuItem1.data("afterActionInfo", (label + " action succeeded."));
afterActionSeccessFn(json, $midmenuItem1);
},
error: function(XMLHttpResponse) {
$midmenuItem1.find("#content").removeClass("inaction");
$midmenuItem1.find("#spinning_wheel").hide();
handleErrorInMidMenu(XMLHttpResponse, $midmenuItem1);
}
});