Skip to content

Commit

Permalink
https://github.com/grandnode/grandnode2/issues/200
Browse files Browse the repository at this point in the history
Fix for the above issue
  • Loading branch information
jithendrajp committed Jan 1, 2022
1 parent a4cb5b1 commit 93a9c99
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@{
Layout = "";
}
<form id="ProductSpecificationPopup" asp-area="@Constants.AreaAdmin"
asp-controller="Product" asp-action="ProductSpecAttrPopup"
<form id="ProductSpecificationPopup" asp-area="@Constants.AreaAdmin"
asp-controller="Product" asp-action="ProductSpecAttrPopup"
enctype="multipart/form-data" method="post"
asp-route-ProductId="@Context.Request.Query["ProductId"]"
asp-route-Id="@Context.Request.Query["Id"]">
Expand Down Expand Up @@ -61,7 +61,11 @@
</div>
<div class="form-group" id="pnlCustomValue">
<admin-label asp-for="CustomValue" />
<div class="col-md-9 col-sm-9">
<div class="col-md-9 col-sm-9" id="pnlCustomHTMLText">
<admin-input asp-for="CustomValue" asp-template="Editor" />
<span asp-validation-for="CustomValue"></span>
</div>
<div class="col-md-9 col-sm-9" id="pnlCustomValueText">
<admin-input asp-for="CustomValue" />
<span asp-validation-for="CustomValue"></span>
</div>
Expand Down Expand Up @@ -174,23 +178,31 @@
$('#pnlCustomValue').hide();
$('#pnlCustomName').hide();
$('#disableOnCustom').show();
$('#pnlCustomValueText').hide();
$('#pnlCustomHTMLText').hide();
$('#pnlAllowFiltering').show();
} else if (selectedTypeId == @(((int)SpecificationAttributeType.CustomText).ToString())) {
$('#pnlSpecificationAttributeOptionId').hide();
$('#pnlCustomName').show();
$('#pnlCustomValue').show();
$('#pnlCustomValueText').show();
$('#pnlCustomHTMLText').hide();
$('#disableOnCustom').hide();
$('#pnlAllowFiltering').hide();
} else if (selectedTypeId == @(((int)SpecificationAttributeType.CustomHtmlText).ToString())) {
$('#pnlSpecificationAttributeOptionId').hide();
$('#pnlCustomName').show();
$('#pnlCustomValue').show();
$('#pnlCustomValueText').hide();
$('#pnlCustomHTMLText').show();
$('#disableOnCustom').hide();
$('#pnlAllowFiltering').hide();
} else if (selectedTypeId == @(((int)SpecificationAttributeType.Hyperlink).ToString())) {
$('#pnlSpecificationAttributeOptionId').hide();
$('#pnlCustomName').show();
$('#pnlCustomValue').show();
$('#pnlCustomValueText').hide();
$('#pnlCustomHTMLText').hide();
$('#disableOnCustom').hide();
$('#pnlAllowFiltering').hide();
}
Expand Down

0 comments on commit 93a9c99

Please sign in to comment.