You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2018/07/28 12:21:52 UTC

svn commit: r1836893 - in /ofbiz/ofbiz-framework/trunk: framework/webtools/template/service/AvailableServices.ftl themes/common-theme/template/includes/Lookup.ftl themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl

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=\"<@o...@ofbizContentUrl>\"></scr" + "ipt>");
-                  document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@o...@ofbizContentUrl>\"></scr" + "ipt>");
-                document.write("<scr" + "ipt type=\"text/javascript\" src=\"<@o...@ofbizContentUrl>\"></scr" + "ipt>");
+                  document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@o...@ofbizContentUrl>\"></scr" + "ipt>");
+                  document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@o...@ofbizContentUrl>\"></scr" + "ipt>");
+                document.write("<scr" + "ipt type=\"application/javascript\" src=\"<@o...@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 = '';