Defaulted "No Thanks" as the data disk offering.

This commit is contained in:
will 2010-12-03 18:07:36 -08:00
parent 01d937ca5e
commit a1573350f9
2 changed files with 2 additions and 3 deletions

View File

@ -875,7 +875,7 @@
<!-- VM Wizard - Service Offering template (end) -->
<!-- VM Wizard - disk Offering template (begin)-->
<div class="vmpopup_offeringbox" id="vm_popup_disk_offering_template_no" style="display: none">
<input type="radio" class="radio" value="no" checked />
<input type="radio" class="radio" value="no" checked="checked" />
<label class="label">
No Thanks</label>
</div>

View File

@ -429,7 +429,6 @@ function initVMWizard() {
//"no, thanks" radio button (default radio button in data disk offering)
var $t = $doTemplateNo.clone();
$t.find("input:radio").attr("name","data_disk_offering_radio");
$t.find("#name").text("no, thanks");
$dataDiskOfferingContainer.append($t.show());
//disk offerings from database
@ -442,7 +441,7 @@ function initVMWizard() {
$t = $doTemplateExisting.clone();
$t.data("jsonObj", offerings[i]).attr("id", "do"+offerings[i].id);
$t.find("input:radio").attr("name","data_disk_offering_radio").attr("checked", "").val(fromdb(offerings[i].id));
$t.find("input:radio").attr("name","data_disk_offering_radio").removeAttr("checked").val(fromdb(offerings[i].id));
$t.find("#name").text(fromdb(offerings[i].name));
$t.find("#description").text(fromdb(offerings[i].displaytext));
$dataDiskOfferingContainer.append($t.show());