From: Yu Xin Huo <huoyuxin(a)linux.vnet.ibm.com>
Signed-off-by: Yu Xin Huo <huoyuxin(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_main.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index 21caf1b..611d8c7 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -211,6 +211,7 @@ kimchi.listVmsAuto = function() {
if(kimchi.trackingTasks.indexOf(tasks[i].id)==-1)
kimchi.trackTask(tasks[i].id, null, function(err){
kimchi.message.error(err.message);
+ kimchi.listVmsAuto();
}, null);
}
}, null, true);
@@ -345,7 +346,12 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu)
{
confirm : i18n['KCHAPI6002M'],
cancel : i18n['KCHAPI6003M']
}, function() {
- kimchi.cloneGuest(guest, function(data){
+ kimchi.cloneGuest(guest, function(task){
+ if(kimchi.trackingTasks.indexOf(task.id)==-1)
+ kimchi.trackTask(task.id, null, function(err){
+ kimchi.message.error(err.message);
+ kimchi.listVmsAuto();
+ }, null);
kimchi.listVmsAuto();
});
}, null);
--
1.7.1