This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new a63fbf2dd3 Fixed: Legacy jQuery.noConflict() in imagemanagement
templates breaks common-theme JS (OFBIZ-13513)
a63fbf2dd3 is described below
commit a63fbf2dd315aee532f59b8579519c4eaf1c9829
Author: Mridul Pathak <[email protected]>
AuthorDate: Mon Aug 31 23:41:47 2026 +0530
Fixed: Legacy jQuery.noConflict() in imagemanagement templates breaks
common-theme JS (OFBIZ-13513)
Five imagemanagement templates called jQuery.noConflict() since 2010,
resetting the global $ alias even though nothing in the theme needs it. This
broke OfbizUtil.js's initializeEvents() and importLibrary, which both rely on
bare $ after page load, causing checkbox select-all, dialogs, and
importLibrary-loaded widgets like the category tree to fail. Removed the
noConflict() calls.
---
applications/product/template/imagemanagement/ImageCrop.ftl | 1 -
applications/product/template/imagemanagement/ImageFrame.ftl | 1 -
applications/product/template/imagemanagement/ImageRotating.ftl | 1 -
applications/product/template/imagemanagement/ResizeImage.ftl | 1 -
applications/product/template/imagemanagement/ShowPeopleApprove.ftl | 1 -
5 files changed, 5 deletions(-)
diff --git a/applications/product/template/imagemanagement/ImageCrop.ftl
b/applications/product/template/imagemanagement/ImageCrop.ftl
index dcf711a233..6513ae6042 100644
--- a/applications/product/template/imagemanagement/ImageCrop.ftl
+++ b/applications/product/template/imagemanagement/ImageCrop.ftl
@@ -20,7 +20,6 @@ under the License.
<script type="application/javascript"
src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jquery.Jcrop.min.js</@ofbizContentUrl>"></script>
<link rel="stylesheet"
href="<@ofbizContentUrl>/common/js/plugins/imagemanagement/jquery.Jcrop.css</@ofbizContentUrl>"
type="text/css" />
<script type="application/javascript">
-jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('td.cropbox img').Jcrop({
onChange: showPreview,
diff --git a/applications/product/template/imagemanagement/ImageFrame.ftl
b/applications/product/template/imagemanagement/ImageFrame.ftl
index 331f179bb6..05940690fa 100644
--- a/applications/product/template/imagemanagement/ImageFrame.ftl
+++ b/applications/product/template/imagemanagement/ImageFrame.ftl
@@ -17,7 +17,6 @@ specific language governing permissions and limitations
under the License.
-->
<script type="application/javascript">
- jQuery.noConflict();
var host = document.location.host;
jQuery(document).ready(function() {
var productId = jQuery('#ImageFrames_productId').val();
diff --git a/applications/product/template/imagemanagement/ImageRotating.ftl
b/applications/product/template/imagemanagement/ImageRotating.ftl
index ed18b7cd9b..b9e1d217d1 100644
--- a/applications/product/template/imagemanagement/ImageRotating.ftl
+++ b/applications/product/template/imagemanagement/ImageRotating.ftl
@@ -29,7 +29,6 @@ under the License.
}
</style>
<script type="application/javascript">
-jQuery.noConflict();
jQuery(document).ready(function(){
var angleHold = 0;
if((jQuery.browser.mozilla) || (jQuery.browser.msie)) {
diff --git a/applications/product/template/imagemanagement/ResizeImage.ftl
b/applications/product/template/imagemanagement/ResizeImage.ftl
index fc875c44ad..08d5a5c648 100644
--- a/applications/product/template/imagemanagement/ResizeImage.ftl
+++ b/applications/product/template/imagemanagement/ResizeImage.ftl
@@ -18,7 +18,6 @@ under the License.
-->
<script type="application/javascript"
src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
-jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('img').attr('id',"previewImage");
diff --git
a/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
b/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
index 809ccf7472..0ea56a8b74 100644
--- a/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
+++ b/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
@@ -18,7 +18,6 @@ under the License.
-->
<script type="application/javascript"
src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="application/javascript">
-jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('input:radio').click(function(){
var elementVal = jQuery(this).val();