deploy VM - show new password in dialog, middle menu item and right panel when middle menu item is clicked.

This commit is contained in:
Jessica Wang 2011-01-14 11:21:00 -08:00
parent 5af31fc97c
commit 115aff6cdb
2 changed files with 7 additions and 6 deletions

View File

@ -1170,9 +1170,10 @@ function initVMWizard() {
bindClickToMidMenu($midmenuItem1, vmToRightPanel, getMidmenuId);
if (item.passwordenabled == true) {
var extraMessage = "New password: " + item.password;
afterAddingMidMenuItem($midmenuItem1, true, extraMessage);
var afterActionInfo = "Instance " + getVmName(item.name, item.displayname) + " has been created successfully. New password is: " + item.password;
var secondRowText = "New password is " + item.password;
afterAddingMidMenuItem($midmenuItem1, true, secondRowText);
var afterActionInfo = "Instance " + getVmName(item.name, item.displayname) + " has been created successfully. New password is " + item.password;
$midmenuItem1.data("afterActionInfo", afterActionInfo);
$("#dialog_info")

View File

@ -695,7 +695,7 @@ function beforeAddingMidMenuItem() {
$("#midmenu_container").prepend($midmenuItem1.show());
return $midmenuItem1;
}
function afterAddingMidMenuItem($midmenuItem1, isSuccessful, extraMessage) {
function afterAddingMidMenuItem($midmenuItem1, isSuccessful, secondRowText) {
$midmenuItem1.find("#content").removeClass("inaction");
$midmenuItem1.find("#spinning_wheel").hide();
@ -730,8 +730,8 @@ function afterAddingMidMenuItem($midmenuItem1, isSuccessful, extraMessage) {
});
}
if(extraMessage != null) {
$midmenuItem1.find("#second_row").text(extraMessage);
if(secondRowText != null) {
$midmenuItem1.find("#second_row").text(secondRowText);
}
}