From 552c08f0b47689acc4472c053da064d4fa4ac100 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 23 Sep 2015 14:59:28 +0200 Subject: [PATCH] [UI] change alert to ui dialog in response of instance wizard --- ui/scripts/instanceWizard.js | 4 +++- ui/scripts/vpc.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js index 1401acef8e2..98ac62bd073 100644 --- a/ui/scripts/instanceWizard.js +++ b/ui/scripts/instanceWizard.js @@ -1068,7 +1068,9 @@ getUpdatedItem: function(json) { var item = json.queryasyncjobresultresponse.jobresult.virtualmachine; if (item.password != null) - alert("Password of new VM " + item.displayname + " is " + item.password); + cloudStack.dialog.notice({ + message: "Password of new VM " + item.displayname + " is " + item.password + }); return item; }, getActionFilter: function() { diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 96bf02f462a..41d10edc73a 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -1507,7 +1507,9 @@ }, complete: function(args) { if (args.password != null) { - alert('Password of the VM is ' + args.password); + cloudStack.dialog.notice({ + message: 'Password of the VM is ' + args.password + }); } return 'label.action.start.instance'; }