Author: deepak
Date: Mon Apr 8 16:56:39 2019 New Revision: 1857122 URL: http://svn.apache.org/viewvc?rev=1857122&view=rev Log: Applied fix from trunk for revision: 1857120 === Improved: Amount field is editable at Product Detail Page (OFBIZ-10663) Added mising css and js code to show/hide the amount field based on Product.requireAmount field. Thanks Dikpal Kanungo for reporting the issue. Modified: ofbiz/ofbiz-plugins/branches/release17.12/ (props changed) ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/catalog/ProductDetail.ftl ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/css/custom.css Propchange: ofbiz/ofbiz-plugins/branches/release17.12/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Mon Apr 8 16:56:39 2019 @@ -11,4 +11,4 @@ /ofbiz/branches/multitenant20100310/plugins:921280-927264 /ofbiz/branches/release13.07/plugins:1547657 /ofbiz/ofbiz-framework/trunk:1836107 -/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802,1856917 +/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856,1831084,1832727,1832800,1837796,1837845,1837857,1838249,1838381,1838816,1841650,1845558,1847272,1847346,1847398,1847528,1847530,1848009,1848396,1848398,1848921,1849119,1851002,1851068,1851135,1851185,1852988,1855082,1856802,1856917,1857120 Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/catalog/ProductDetail.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/catalog/ProductDetail.ftl?rev=1857122&r1=1857121&r2=1857122&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/catalog/ProductDetail.ftl (original) +++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/template/catalog/ProductDetail.ftl Mon Apr 8 16:56:39 2019 @@ -124,10 +124,12 @@ ${virtualVariantJavaScript!} function toggleAmt(toggle) { if (toggle == 'Y') { changeObjectVisibility("add_amount", "visible"); + document.getElementById("add_amount").style.height = "auto"; } if (toggle == 'N') { changeObjectVisibility("add_amount", "hidden"); + document.getElementById("add_amount").style.height = "0px"; } } @@ -669,7 +671,6 @@ $(function(){ </#if> <#-- Variant Selection --> <div class="form-group"> - <label>${uiLabelMap.CommonAmount}:</label> <#if "Y" == product.isVirtual!?upper_case> <#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content> <#list featureLists as featureList> @@ -769,6 +770,7 @@ $(function(){ <#assign hiddenStyle = "hidden"/> </#if> <div id="add_amount" class="${hiddenStyle} form-group"> + <label>${uiLabelMap.CommonAmount}:</label> <input type="text" class="form-control" name="add_amount" value=""/> </div> <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!> Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/css/custom.css URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/css/custom.css?rev=1857122&r1=1857121&r2=1857122&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/css/custom.css (original) +++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/webapp/ecommerce/css/custom.css Mon Apr 8 16:56:39 2019 @@ -115,4 +115,9 @@ li { } button.jGrowl-close { float: right; +} + +.hidden { + height: 0; + visibility: hidden; } \ No newline at end of file |
Free forum by Nabble | Edit this page |