new UI - instance page - fix a bug that top message doesn't show new password after reset pasword for VM succeeds.

This commit is contained in:
Jessica Wang 2010-11-05 20:06:08 -07:00
parent 1359976d5e
commit baa1a5996c
1 changed files with 6 additions and 2 deletions

View File

@ -994,8 +994,12 @@ var vmActionMap = {
dialogBeforeActionFn : doResetPassword,
afterActionSeccessFn: function(json, $midmenuItem1, id) {
var item = json.queryasyncjobresultresponse.jobresult.virtualmachine;
var $afterActionInfoContainer = $("#right_panel_content #after_action_info_container_on_top");
$afterActionInfoContainer.find("#after_action_info").html("New password is <b>" + fromdb(item.password) + "</b>");
var $afterActionInfoContainer = $("#right_panel_content #after_action_info_container_on_top");
var afterActionInfo = "New password is " + fromdb(item.password);
$afterActionInfoContainer.find("#after_action_info").text(afterActionInfo);
handleMidMenuItemAfterDetailsTabAction($midmenuItem1, true, afterActionInfo); //override default afterActionInfo("Reset Password action succeeded")
$afterActionInfoContainer.removeClass("errorbox").show();
}
},