From 8c85d8f05cffd16899ac9598ec0950456c99053e Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 21 Dec 2011 16:54:46 -0800 Subject: [PATCH] cloudstack 3.0 new UI - download template - fix a bug that "Please click ~~~ to download template" dialog didn't pop up after extractTemplate API returned success. --- ui/scripts/templates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 9c876e5c367..b37d7cf0f48 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -369,7 +369,7 @@ notification: function(args) { return 'Downloading template'; }, - complete: function(args) { + complete: function(args) { var url = decodeURIComponent(args.url); var htmlMsg = 'Please click 00000 to download template'; var htmlMsg2 = htmlMsg.replace(/#/, url).replace(/00000/, url); @@ -390,8 +390,8 @@ args.response.success( {_custom: {jobId: jid, - getUpdatedItem: function(json) { - return json.queryasyncjobresultresponse.jobresult.iso; + getUpdatedItem: function(json) { + return json.queryasyncjobresultresponse.jobresult.template; }, getActionFilter: function() { return templateActionfilter;