From 15a86de24363fcc34565c63af61043a8d08a8d4e Mon Sep 17 00:00:00 2001 From: will Date: Mon, 8 Nov 2010 12:07:04 -0800 Subject: [PATCH] bug 6709: Fixed creation of template from the volume snapshot detail screen to now pass in the password enabled variable. status 6709: resolved fixed --- ui/scripts/cloud.core.storage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/scripts/cloud.core.storage.js b/ui/scripts/cloud.core.storage.js index 0ad5923f39a..870281bd267 100644 --- a/ui/scripts/cloud.core.storage.js +++ b/ui/scripts/cloud.core.storage.js @@ -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;