Author: deepak
Date: Sat Jul 28 12:21:52 2018 New Revision: 1836893 URL: http://svn.apache.org/viewvc?rev=1836893&view=rev Log: Improved: Improved: Use application/javascript instead of text/javascript (OFBIZ-10492) Added missing file in last commit Modified: ofbiz/ofbiz-framework/trunk/framework/webtools/template/service/AvailableServices.ftl ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/Lookup.ftl ofbiz/ofbiz-framework/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl Modified: ofbiz/ofbiz-framework/trunk/framework/webtools/template/service/AvailableServices.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/template/service/AvailableServices.ftl?rev=1836893&r1=1836892&r2=1836893&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/framework/webtools/template/service/AvailableServices.ftl (original) +++ ofbiz/ofbiz-framework/trunk/framework/webtools/template/service/AvailableServices.ftl Sat Jul 28 12:21:52 2018 @@ -156,7 +156,7 @@ under the License. <#-- If service has ECA's --> <#if ecaMapList?? && ecaMapList?has_content> <#-- add the javascript for modalpopup's --> - <script type='text/javascript'> + <script type='application/javascript'> function detailsPopup(viewName){ var lookupWinSettings = 'top=50,left=50,width=600,height=300,scrollbars=auto,status=no,resizable=no,dependent=yes,alwaysRaised=yes'; var params = ''; Modified: ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/Lookup.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/Lookup.ftl?rev=1836893&r1=1836892&r2=1836893&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/Lookup.ftl (original) +++ ofbiz/ofbiz-framework/trunk/themes/common-theme/template/includes/Lookup.ftl Sat Jul 28 12:21:52 2018 @@ -34,9 +34,9 @@ under the License. if (typeof(jQuery) == 'undefined') { if (!jQueryLibLoaded) { jQueryLibLoaded = true; - document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/jquery-3.2.1.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); - document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/jquery-migrate-3.0.0.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); - document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/plugins/browser-plugin/jquery.browser-0.1.0.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); + document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/jquery-3.2.1.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); + document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/jquery-migrate-3.0.0.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); + document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@ofbizContentUrl>/common/js/jquery/plugins/browser-plugin/jquery.browser-0.1.0.min.js</@ofbizContentUrl>\"></scr" + "ipt>"); } setTimeout("initJQuery()", 50); } Modified: ofbiz/ofbiz-framework/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl?rev=1836893&r1=1836892&r2=1836893&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl (original) +++ ofbiz/ofbiz-framework/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl Sat Jul 28 12:21:52 2018 @@ -232,7 +232,7 @@ under the License. </span> <#if otherFieldName?has_content> <noscript><input type='text' name='${otherFieldName}' /></noscript> - <script type='text/javascript'><!-- + <script type='application/javascript'><!-- disa = ' disabled'; if(other_choice(document.${formName}.${fieldName})) disa = ''; |
Free forum by Nabble | Edit this page |