From ef0c694a46a42eebc7e17bb54368ef0ee00fa0aa Mon Sep 17 00:00:00 2001 From: Deepak Dixit Date: Sat, 28 Jul 2018 10:51:52 +0000 Subject: [PATCH] Improved: Use application/javascript instead of text/javascript (OFBIZ-10492) Replace text/javascript with application/javascript in all the script tag git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68 --- .../accounting/template/ap/invoices/CommissionRun.ftl | 2 +- .../template/ap/invoices/PurchaseInvoices.ftl | 2 +- .../accounting/template/ar/invoice/ListInvoices.ftl | 2 +- .../accounting/template/ar/payment/BatchPayments.ftl | 2 +- .../template/finaccounttrans/FinAccountTrans.ftl | 4 ++-- .../finaccounttrans/GlReconciledFinAccountTrans.ftl | 2 +- .../template/payment/DepositWithdrawPayments.ftl | 2 +- .../accounting/template/payment/ManualCCTx.ftl | 6 +++--- .../apache/ofbiz/content/data/DataResourceWorker.java | 2 +- applications/content/template/cms/CMSSites.ftl | 4 ++-- applications/content/template/content/ContentNav.ftl | 2 +- .../content/template/content/DisplayContentNav.ftl | 2 +- applications/content/template/content/Nav.ftl | 2 +- .../content/template/contentsetup/UserPermissions.ftl | 2 +- .../content/template/website/WebSiteCMSContent.ftl | 2 +- .../content/template/website/WebSiteCMSNav.ftl | 10 +++++----- applications/humanres/template/FindEmployee.ftl | 2 +- .../humanres/template/category/CategoryTree.ftl | 2 +- .../humanres/template/internalorg/EditInternalOrg.ftl | 2 +- .../template/internalorg/RemoveInternalOrg.ftl | 2 +- .../manufacturing/template/bom/EditProductBom.ftl | 2 +- .../template/mrp/FindInventoryEventPlan.ftl | 4 ++-- .../template/routing/EditRoutingTaskAssoc.ftl | 2 +- .../entry/catalog/InlineProductDetail.groovy | 2 +- .../groovyScripts/entry/catalog/ProductDetail.groovy | 4 ++-- .../groovyScripts/entry/catalog/ProductSummary.groovy | 2 +- applications/order/template/entry/BillSettings.ftl | 4 ++-- applications/order/template/entry/CheckoutOptions.ftl | 2 +- applications/order/template/entry/CheckoutPayment.ftl | 2 +- .../order/template/entry/CheckoutShippingAddress.ftl | 2 +- applications/order/template/entry/ShipSettings.ftl | 2 +- applications/order/template/entry/SplitShip.ftl | 2 +- applications/order/template/entry/cart/Javascript.ftl | 2 +- applications/order/template/entry/cart/ShowCart.ftl | 4 ++-- .../order/template/entry/catalog/CategoryDetail.ftl | 2 +- .../template/entry/catalog/ConfigProductDetail.ftl | 6 +++--- .../template/entry/catalog/InlineProductDetail.ftl | 6 +++--- .../order/template/entry/catalog/ProductDetail.ftl | 4 ++-- .../order/template/entry/catalog/ProductSummary.ftl | 4 ++-- applications/order/template/order/AppendOrderItem.ftl | 2 +- applications/order/template/order/FindOrders.ftl | 4 ++-- applications/order/template/order/OrderList.ftl | 2 +- .../order/template/order/OrderShippingInfo.ftl | 6 +++--- applications/order/template/task/OrderTaskList.ftl | 2 +- .../party/template/party/profileblocks/Content.ftl | 2 +- .../product/template/category/CategoryTree.ftl | 2 +- .../product/template/category/EditCategory.ftl | 4 ++-- .../template/config/EditProductConfigItemContent.ftl | 2 +- .../template/facility/BatchPrintMarkAsAccepted.ftl | 2 +- .../product/template/facility/PickMoveStock.ftl | 2 +- .../product/template/facility/PicklistManage.ftl | 2 +- applications/product/template/find/KeywordSearch.ftl | 2 +- .../product/template/find/KeywordSearchBox.ftl | 2 +- .../product/template/imagemanagement/ImageCrop.ftl | 6 +++--- .../product/template/imagemanagement/ImageFrame.ftl | 2 +- .../product/template/imagemanagement/ImageRotating.ftl | 6 +++--- .../product/template/imagemanagement/ImageShare.ftl | 2 +- .../product/template/imagemanagement/ResizeImage.ftl | 4 ++-- .../template/imagemanagement/ShowPeopleApprove.ftl | 4 ++-- .../product/template/inventory/ReceiveInventory.ftl | 4 ++-- .../template/inventory/TransferInventoryItem.ftl | 2 +- .../template/price/SetPriceRulesCondEventJs.ftl | 2 +- .../product/template/product/EditProductContent.ftl | 4 ++-- .../product/template/product/EditProductQuickAdmin.ftl | 2 +- .../product/template/product/QuickAddVariants.ftl | 2 +- .../product/template/product/ViewProductOrders.ftl | 2 +- .../product/template/returns/ReceiveReturn.ftl | 2 +- applications/product/template/shipment/PackOrder.ftl | 6 +++--- .../product/template/shipment/QuickShipOrder.ftl | 6 +++--- .../shipment/ReceiveInventoryAgainstPurchaseOrder.ftl | 10 +++++----- applications/product/template/shipment/VerifyPick.ftl | 6 +++--- .../product/template/store/ProductStoreGroupTree.ftl | 2 +- framework/webtools/template/entity/CheckDb.ftl | 2 +- framework/webtools/template/entity/ViewGeneric.ftl | 2 +- .../webtools/template/labelmanager/UpdateLabel.ftl | 2 +- .../template/service/SetServiceParameterSync.ftl | 2 +- themes/bluelight/template/AppBarClose.ftl | 2 +- themes/bluelight/template/Header.ftl | 6 +++--- themes/common-theme/template/ChangePassword.ftl | 2 +- themes/common-theme/template/Login.ftl | 2 +- .../template/includes/AjaxAutocompleteOptions.ftl | 2 +- themes/common-theme/template/includes/GeoLocation.ftl | 8 ++++---- .../template/includes/GoogleGeoLocation.ftl | 4 ++-- .../template/includes/ListVisualThemes.ftl | 4 ++-- themes/common-theme/template/includes/Lookup.ftl | 8 ++++---- .../template/includes/ServerHour24HourFormatJs.ftl | 2 +- .../template/includes/SetDependentDropdownValuesJs.ftl | 2 +- .../template/includes/SetMultipleSelectJs.ftl | 2 +- .../template/includes/SetMultipleSelectJsList.ftl | 2 +- themes/common-theme/template/includes/Simple.ftl | 2 +- themes/common-theme/template/includes/TimeDuration.ftl | 2 +- .../common-theme/template/includes/flotCharts/Bars.ftl | 6 +++--- .../common-theme/template/includes/flotCharts/Pie.ftl | 8 ++++---- .../template/macro/HtmlFormMacroLibrary.ftl | 10 +++++----- .../template/macro/HtmlScreenMacroLibrary.ftl | 4 ++-- themes/common-theme/webapp/common/js/util/OfbizUtil.js | 2 +- themes/flatgrey/template/Footer.ftl | 2 +- themes/flatgrey/template/Header.ftl | 6 +++--- themes/rainbowstone/template/ChangePassword.ftl | 2 +- themes/rainbowstone/template/Login.ftl | 2 +- themes/rainbowstone/template/includes/Footer.ftl | 2 +- themes/rainbowstone/template/includes/Header.ftl | 6 +++--- themes/rainbowstone/template/includes/HomeMenu.ftl | 2 +- themes/tomahawk/template/AppBarClose.ftl | 2 +- themes/tomahawk/template/Footer.ftl | 2 +- themes/tomahawk/template/Header.ftl | 6 +++--- 106 files changed, 172 insertions(+), 172 deletions(-) diff --git a/applications/accounting/template/ap/invoices/CommissionRun.ftl b/applications/accounting/template/ap/invoices/CommissionRun.ftl index 8bb44c0430..3c71076507 100644 --- a/applications/accounting/template/ap/invoices/CommissionRun.ftl +++ b/applications/accounting/template/ap/invoices/CommissionRun.ftl @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> - + + + - - + + + <#if language?has_content && language != "en"> -<#rt/> +<#rt/> - diff --git a/applications/order/template/entry/catalog/CategoryDetail.ftl b/applications/order/template/entry/catalog/CategoryDetail.ftl index 2d532e8dd3..eb122c4558 100644 --- a/applications/order/template/entry/catalog/CategoryDetail.ftl +++ b/applications/order/template/entry/catalog/CategoryDetail.ftl @@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - + <#-- Swatches (virtual products only) --> diff --git a/applications/order/template/entry/catalog/InlineProductDetail.ftl b/applications/order/template/entry/catalog/InlineProductDetail.ftl index ca9beb5f2c..f08f058d1c 100644 --- a/applications/order/template/entry/catalog/InlineProductDetail.ftl +++ b/applications/order/template/entry/catalog/InlineProductDetail.ftl @@ -21,7 +21,7 @@ ${virtualJavaScript!} <#assign addedJavaScript = requestAttributes.addedJavaScript?default("N")/> <#if ("N" == addedJavaScript)> ${setRequestAttribute("addedJavaScript", "Y")} - + diff --git a/applications/order/template/entry/catalog/ProductDetail.ftl b/applications/order/template/entry/catalog/ProductDetail.ftl index 05689cd50a..29f58cce5a 100644 --- a/applications/order/template/entry/catalog/ProductDetail.ftl +++ b/applications/order/template/entry/catalog/ProductDetail.ftl @@ -22,7 +22,7 @@ under the License. <#-- virtual product javascript --> ${virtualJavaScript!} - + <#-- Swatches (virtual products only) --> diff --git a/applications/order/template/entry/catalog/ProductSummary.ftl b/applications/order/template/entry/catalog/ProductSummary.ftl index 553bf83326..e9a60e9923 100644 --- a/applications/order/template/entry/catalog/ProductSummary.ftl +++ b/applications/order/template/entry/catalog/ProductSummary.ftl @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> ${virtualJavaScript!} - @@ -494,7 +494,7 @@ under the License. - - + + - - + + - - + - +
${title}
@@ -280,7 +280,7 @@ under the License. - diff --git a/applications/product/template/inventory/TransferInventoryItem.ftl b/applications/product/template/inventory/TransferInventoryItem.ftl index 7c810df171..d4ba9e5538 100644 --- a/applications/product/template/inventory/TransferInventoryItem.ftl +++ b/applications/product/template/inventory/TransferInventoryItem.ftl @@ -45,7 +45,7 @@ under the License. - diff --git a/applications/product/template/price/SetPriceRulesCondEventJs.ftl b/applications/product/template/price/SetPriceRulesCondEventJs.ftl index 6dda4cce3e..b754a6590f 100644 --- a/applications/product/template/price/SetPriceRulesCondEventJs.ftl +++ b/applications/product/template/price/SetPriceRulesCondEventJs.ftl @@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - <#else> - diff --git a/applications/product/template/shipment/QuickShipOrder.ftl b/applications/product/template/shipment/QuickShipOrder.ftl index 1e4eb09caf..ff7a487bf6 100644 --- a/applications/product/template/shipment/QuickShipOrder.ftl +++ b/applications/product/template/shipment/QuickShipOrder.ftl @@ -103,7 +103,7 @@ under the License. - <#else> @@ -146,7 +146,7 @@ under the License. - @@ -184,7 +184,7 @@ under the License. - diff --git a/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl b/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl index 7629476678..249bf250fc 100644 --- a/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl +++ b/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl @@ -19,7 +19,7 @@ under the License. <#if shipment??> <#-- JS to populate the quantity_o_# field required by the chained issueOrderItemToShipment service --> - + <#elseif ProductReceiveInventoryAgainstPurchaseOrderQuantityExceedsAvailableToReceive??>
<#assign uiLabelWithVar=uiLabelMap.ProductReceiveInventoryAgainstPurchaseOrderQuantityExceedsAvailableToReceive?interpret><@uiLabelWithVar/> - +
<#if ProductReceiveInventoryAgainstPurchaseOrderQuantityGoesToBackOrder??>
<#assign uiLabelWithVar=uiLabelMap.ProductReceiveInventoryAgainstPurchaseOrderQuantityGoesToBackOrder?interpret><@uiLabelWithVar/> - +
@@ -243,7 +243,7 @@ under the License. - diff --git a/applications/product/template/shipment/VerifyPick.ftl b/applications/product/template/shipment/VerifyPick.ftl index 40c08310bd..5914c9fe16 100644 --- a/applications/product/template/shipment/VerifyPick.ftl +++ b/applications/product/template/shipment/VerifyPick.ftl @@ -360,16 +360,16 @@ under the License. <#if orderId?has_content> - <#else> - <#if shipmentId?has_content> - diff --git a/applications/product/template/store/ProductStoreGroupTree.ftl b/applications/product/template/store/ProductStoreGroupTree.ftl index e416c1cf91..039f981ed0 100644 --- a/applications/product/template/store/ProductStoreGroupTree.ftl +++ b/applications/product/template/store/ProductStoreGroupTree.ftl @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> - diff --git a/themes/bluelight/template/AppBarClose.ftl b/themes/bluelight/template/AppBarClose.ftl index 4cd3ac9ee6..209786f428 100644 --- a/themes/bluelight/template/AppBarClose.ftl +++ b/themes/bluelight/template/AppBarClose.ftl @@ -31,7 +31,7 @@ under the License. <#if userLogin??> - diff --git a/themes/bluelight/template/Header.ftl b/themes/bluelight/template/Header.ftl index 05545cf50d..7cdc4a4995 100644 --- a/themes/bluelight/template/Header.ftl +++ b/themes/bluelight/template/Header.ftl @@ -39,7 +39,7 @@ under the License. <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> - + <#if layoutSettings.javaScripts?has_content> @@ -49,7 +49,7 @@ under the License. <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> - + @@ -82,7 +82,7 @@ under the License. <#if layoutSettings.WEB_ANALYTICS?has_content> - diff --git a/themes/common-theme/template/Login.ftl b/themes/common-theme/template/Login.ftl index f86b385a67..85aaa04d9b 100644 --- a/themes/common-theme/template/Login.ftl +++ b/themes/common-theme/template/Login.ftl @@ -66,7 +66,7 @@ under the License. - + <#-- ========================== Here we go with different types of maps renderer ===========================--> <#if "GEOPT_GOOGLE" == geoChart.dataSourceId> - - + + - + type="application/javascript"> <#if layoutSettings.javaScripts?has_content> <#--layoutSettings.javaScripts is a list of java scripts. --> <#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order --> @@ -54,7 +54,7 @@ under the License. <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> + type="application/javascript"> @@ -84,7 +84,7 @@ under the License. - + <#if layoutSettings.styleSheets?has_content> diff --git a/themes/common-theme/template/includes/TimeDuration.ftl b/themes/common-theme/template/includes/TimeDuration.ftl index 7cd518509a..269e3b299f 100644 --- a/themes/common-theme/template/includes/TimeDuration.ftl +++ b/themes/common-theme/template/includes/TimeDuration.ftl @@ -16,7 +16,7 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - - + +
- - - + + +
-<#lt/> + <#lt/> @@ -102,7 +102,7 @@ under the License. <#if maxlength?has_content> maxlength="${maxlength}" <#if id?has_content> id="${id}"/><#rt/> <#if dateType!="time" > - + id="${id}"<#if style?has_content> class="${style}"> @@ -185,7 +185,7 @@ ${menuString} <#macro renderPortalPageColumnBegin originalPortalPageId portalPageId columnSeqId confMode="false" width="auto" delColumnLabel="Delete column" delColumnHint="Delete this column" addPortletLabel="Add portlet" addPortletHint="Add a new portlet to this column" colWidthLabel="Col. width:" setColumnSizeHint="Set column size"> <#assign columnKey = portalPageId+columnSeqId> <#assign columnKeyFields = ''> - + diff --git a/themes/flatgrey/template/Header.ftl b/themes/flatgrey/template/Header.ftl index 93ba12434c..56550f7077 100644 --- a/themes/flatgrey/template/Header.ftl +++ b/themes/flatgrey/template/Header.ftl @@ -35,7 +35,7 @@ under the License. <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> - + <#if layoutSettings.javaScripts?has_content> @@ -45,7 +45,7 @@ under the License. <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> - + @@ -79,7 +79,7 @@ under the License. <#if lastParameters??><#assign parametersURL = "&" + lastParameters> <#if layoutSettings.WEB_ANALYTICS?has_content> - diff --git a/themes/rainbowstone/template/Login.ftl b/themes/rainbowstone/template/Login.ftl index 15aff471f8..0457182bc9 100644 --- a/themes/rainbowstone/template/Login.ftl +++ b/themes/rainbowstone/template/Login.ftl @@ -67,7 +67,7 @@ under the License. - + diff --git a/themes/rainbowstone/template/includes/Header.ftl b/themes/rainbowstone/template/includes/Header.ftl index d7a7a03687..48afc64247 100644 --- a/themes/rainbowstone/template/includes/Header.ftl +++ b/themes/rainbowstone/template/includes/Header.ftl @@ -41,7 +41,7 @@ under the License. "/> <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> - + <#if layoutSettings.javaScripts?has_content> @@ -51,7 +51,7 @@ under the License. <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> - + @@ -85,7 +85,7 @@ under the License. <#if lastParameters??><#assign parametersURL = "&" + lastParameters> <#if layoutSettings.WEB_ANALYTICS?has_content> - diff --git a/themes/tomahawk/template/Footer.ftl b/themes/tomahawk/template/Footer.ftl index ceefefb937..cc26dd758e 100644 --- a/themes/tomahawk/template/Footer.ftl +++ b/themes/tomahawk/template/Footer.ftl @@ -36,7 +36,7 @@ under the License. <#if layoutSettings.VT_FTR_JAVASCRIPT?has_content> <#list layoutSettings.VT_FTR_JAVASCRIPT as javaScript> - + diff --git a/themes/tomahawk/template/Header.ftl b/themes/tomahawk/template/Header.ftl index 4215232665..87d4327cbf 100644 --- a/themes/tomahawk/template/Header.ftl +++ b/themes/tomahawk/template/Header.ftl @@ -40,7 +40,7 @@ under the License. <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> - + <#if layoutSettings.javaScripts?has_content> @@ -50,7 +50,7 @@ under the License. <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> - + @@ -83,7 +83,7 @@ under the License. <#if layoutSettings.WEB_ANALYTICS?has_content> -