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.

This commit is contained in:
Jessica Wang 2011-12-21 16:54:46 -08:00
parent 646d95a846
commit 8c85d8f05c
1 changed files with 3 additions and 3 deletions

View File

@ -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 <a href="#">00000</a> 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;