Skip to content

Commit d653105

Browse files
committed
CLOUDSTACK-10146: Show checksum field when Direct download is clicked
1 parent 88ae07a commit d653105

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

ui/scripts/templates.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@
297297
dependsOn: 'hypervisor',
298298
isHidden: true
299299
},
300+
checksum: {
301+
label: 'label.checksum',
302+
dependsOn: 'directdownload',
303+
isHidden: true
304+
},
300305
// Direct Download - End
301306

302307
xenserverToolsVersion61plus: {
@@ -656,7 +661,8 @@
656661

657662
if (args.$form.find('.form-item[rel=directdownload]').css("display") != "none" && args.data.directdownload != "") {
658663
$.extend(data, {
659-
'directdownload': (args.data.directdownload == "on") ? "true" : "false"
664+
'directdownload': (args.data.directdownload == "on") ? "true" : "false",
665+
'checksum': args.data.checksum
660666
});
661667
}
662668
// KVM only (ends here)
@@ -2133,6 +2139,11 @@
21332139
docID: 'helpRegisterTemplateDirectDownload',
21342140
isBoolean: true
21352141
},
2142+
checksum: {
2143+
label: 'label.checksum',
2144+
dependsOn: 'directdownload',
2145+
isHidden: true
2146+
},
21362147
// Direct Download - End
21372148
zone: {
21382149
label: 'label.zone',
@@ -2263,6 +2274,11 @@
22632274
isfeatured: (args.data.isFeatured == "on")
22642275
});
22652276
}
2277+
if (args.$form.find('.form-item[rel=checksum]').css("display") != "none") {
2278+
$.extend(data, {
2279+
checksum: args.data.checksum
2280+
});
2281+
}
22662282

22672283
$.ajax({
22682284
url: createURL('registerIso'),

0 commit comments

Comments
 (0)