From 1849d4a6b118588fc2b1a5efd73f5a9a3cc42796 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 17 Aug 2010 14:05:38 -0700 Subject: [PATCH] Issue #: 5894 Create Template from Snapshot dialog - add password dropdown field --- ui/content/tab_storage.html | 9 ++++++++- ui/scripts/cloud.core.storage.js | 12 +++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ui/content/tab_storage.html b/ui/content/tab_storage.html index 2250ebddacd..90c75b95dba 100644 --- a/ui/content/tab_storage.html +++ b/ui/content/tab_storage.html @@ -1516,7 +1516,14 @@ - + +
  • + + +
  • diff --git a/ui/scripts/cloud.core.storage.js b/ui/scripts/cloud.core.storage.js index 8d3434fa7fe..028c541535c 100644 --- a/ui/scripts/cloud.core.storage.js +++ b/ui/scripts/cloud.core.storage.js @@ -16,7 +16,7 @@ * */ -// Version: 1.9.1.452 +// Version: @VERSION@ function showStorageTab(domainId, targetTab) { var currentSubMenu; @@ -531,7 +531,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"); @@ -541,7 +542,7 @@ function showStorageTab(domainId, targetTab) { rowContainer.hide(); $.ajax({ - data: createURL("command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&response=json"), + data: createURL("command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&passwordEnabled="+password+"&response=json"), dataType: "json", success: function(json) { var jobId = json.createtemplateresponse.jobid; @@ -1596,7 +1597,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"); @@ -1606,7 +1608,7 @@ function showStorageTab(domainId, targetTab) { rowContainer.hide(); $.ajax({ - data: createURL("command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&response=json"), + data: createURL("command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&passwordEnabled="+password+"&response=json"), dataType: "json", success: function(json) { var jobId = json.createtemplateresponse.jobid;