new UI - vm wizard - select service offering - set 1st radio button as default

This commit is contained in:
jessica 2010-08-30 11:34:24 -07:00 committed by unknown
parent 95aee2414e
commit 624d37e543
2 changed files with 4 additions and 1 deletions

View File

@ -551,7 +551,7 @@
<!-- VM wizard (end)-->
<!-- VM Wizard - Service Offering template (begin) -->
<div class="vmpopup_offeringbox" id="vm_popup_service_offering_template" style="display: none">
<input type="radio" name="service_offering_radio" class="radio" />
<input type="radio" name="service_offering_radio" class="radio" checked />
<label class="label" id="name">
</label>
<div class="vmpopup_offdescriptionbox">

View File

@ -486,6 +486,9 @@ function clickInstanceGroupHeader($arrowIcon) {
$t.find("input:radio[name=service_offering_radio]").val(offerings[i].id);
$t.find("#name").text(sanitizeXSS(unescape(offerings[i].name)));
$t.find("#description").text(sanitizeXSS(unescape(offerings[i].displaytext)));
if (i > 0)
$t.find("input:radio[name=service_offering_radio]").removeAttr("checked");
//if(i == 0)
// $t.find("input:radio[name=service_offering_radio]").attr("checked", true);