svn commit: r1837796 - /ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1837796 - /ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js

surajk
Author: surajk
Date: Fri Aug 10 12:26:48 2018
New Revision: 1837796

URL: http://svn.apache.org/viewvc?rev=1837796&view=rev
Log:
Fixed: Not able to select Virtual Product in WebPos.
(OFBIZ-7719)
Thanks Vishal for your patch.

Modified:
    ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js

Modified: ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js?rev=1837796&r1=1837795&r2=1837796&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/images/js/ChooseVariant.js Fri Aug 10 12:26:48 2018
@@ -262,14 +262,14 @@ function getResultOfGetProductAndPrice(d
         var price = data.price;
         var currencyUomId = data.currencyUomId;
         if (product.productName != null) {
-            jQuery('#variantProductDescription').update(product.productName);
+            jQuery('#variantProductDescription').val(product.productName);
         } else if (product.productDescription != null) {
-            jQuery('#variantProductDescription').update(product.productDescription);
+            jQuery('#variantProductDescription').val(product.productDescription);
         } else if (product.longDescription != null) {
-            jQuery('#variantProductDescription').update(product.longDescription);
+            jQuery('#variantProductDescription').val(product.longDescription);
         }
         var formattedPrice = getFormattedAmount(price, currencyUomId);
-        jQuery('#variantProductPrice').update(formattedPrice);
+        jQuery('#variantProductPrice').val(formattedPrice);
     }
 }