Author: deepak
Date: Tue Jul 24 12:41:50 2018 New Revision: 1836550 URL: http://svn.apache.org/viewvc?rev=1836550&view=rev Log: Improved: Remove use of deprecated language attribute from script tag (OFBIZ-10491) Modified: ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/InlineProductDetail.groovy ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductSummary.groovy Modified: ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/InlineProductDetail.groovy URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/InlineProductDetail.groovy?rev=1836550&r1=1836549&r2=1836550&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/InlineProductDetail.groovy (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/InlineProductDetail.groovy Tue Jul 24 12:41:50 2018 @@ -181,7 +181,7 @@ if (inlineProduct) { if (variantTree && imageMap) { jsBuf = new StringBuffer() - jsBuf.append("<script language=\"JavaScript\" type=\"text/javascript\">") + jsBuf.append("<script type=\"text/javascript\">") jsBuf.append("var DET" + inlineCounter + "= new Array(" + variantTree.size() + ");") jsBuf.append("var IMG" + inlineCounter + " = new Array(" + variantTree.size() + ");") jsBuf.append("var OPT" + inlineCounter + " = new Array(" + featureOrder.size() + ");") Modified: ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy?rev=1836550&r1=1836549&r2=1836550&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy Tue Jul 24 12:41:50 2018 @@ -310,7 +310,7 @@ if (product) { if (variantTree && imageMap) { jsBuf = new StringBuffer() - jsBuf.append("<script language=\"JavaScript\" type=\"text/javascript\">") + jsBuf.append("<script type=\"text/javascript\">") jsBuf.append("var DET = new Array(" + variantTree.size() + ");") jsBuf.append("var IMG = new Array(" + variantTree.size() + ");") jsBuf.append("var OPT = new Array(" + featureOrder.size() + ");") @@ -506,7 +506,7 @@ if (product) { if(isAlternativePacking){ // get alternative product price when product doesn't have any feature jsBuf = new StringBuffer() - jsBuf.append("<script language=\"JavaScript\" type=\"text/javascript\">") + jsBuf.append("<script type=\"text/javascript\">") // make a list of variant sku with requireAmount virtualVariantsRes = runService('getAssociatedProducts', [productIdTo : productId, type : "ALTERNATIVE_PACKAGE", checkViewAllow : true, prodCatalogId : categoryId]) Modified: ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductSummary.groovy URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductSummary.groovy?rev=1836550&r1=1836549&r2=1836550&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductSummary.groovy (original) +++ ofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/catalog/ProductSummary.groovy Tue Jul 24 12:41:50 2018 @@ -154,7 +154,7 @@ if (product) { // get alternative product price when product doesn't have any feature jsBuf = new StringBuffer() - jsBuf.append("<script language=\"JavaScript\" type=\"text/javascript\">") + jsBuf.append("<script type=\"text/javascript\">") // make a list of variant sku with requireAmount virtualVariantsRes = runService('getAssociatedProducts', [productIdTo : productId, type : "ALTERNATIVE_PACKAGE", checkViewAllow : true, prodCatalogId : categoryId]) |
Free forum by Nabble | Edit this page |