bug 6709: Fixed creation of template from the volume snapshot detail screen to now pass in the password enabled variable.

status 6709: resolved fixed
This commit is contained in:
will 2010-11-08 12:07:04 -08:00
parent 10e9396996
commit 15a86de243
1 changed files with 3 additions and 2 deletions

View File

@ -1611,7 +1611,8 @@ function showStorageTab(domainId, targetTab) {
var name = thisDialog.find("#name").val();
var displayText = thisDialog.find("#display_text").val();
var osTypeId = thisDialog.find("#os_type").val();
var osTypeId = thisDialog.find("#os_type").val();
var password = thisDialog.find("#password").val();
thisDialog.dialog("close");
var loadingImg = template.find(".adding_loading");
@ -1621,7 +1622,7 @@ function showStorageTab(domainId, targetTab) {
rowContainer.hide();
$.ajax({
data: "command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&response=json",
data: "command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&passwordEnabled="+password+"&response=json",
dataType: "json",
success: function(json) {
var jobId = json.createtemplateresponse.jobid;