mirror of https://github.com/apache/cloudstack.git
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:
parent
646d95a846
commit
8c85d8f05c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue