This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0d420d94a6 Fixed: Legacy jQuery.noConflict() in imagemanagement
templates breaks common-theme JS (OFBIZ-13513)
0d420d94a6 is described below
commit 0d420d94a66774cb655e62b62e0da81241eec580
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 023ff1921d..e6af887279 100644
--- a/applications/product/template/imagemanagement/ImageCrop.ftl
+++ b/applications/product/template/imagemanagement/ImageCrop.ftl
@@ -20,7 +20,6 @@ under the License.
<script type="text/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="text/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 69ea32a45f..2a2119b1f1 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="text/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 fbc0022239..120d6f6175 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="text/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 166f7cbb98..ff5cc6dc56 100644
--- a/applications/product/template/imagemanagement/ResizeImage.ftl
+++ b/applications/product/template/imagemanagement/ResizeImage.ftl
@@ -18,7 +18,6 @@ under the License.
-->
<script type="text/javascript"
src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/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 49bbd89a97..7cab700778 100644
--- a/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
+++ b/applications/product/template/imagemanagement/ShowPeopleApprove.ftl
@@ -18,7 +18,6 @@ under the License.
-->
<script type="text/javascript"
src="<@ofbizContentUrl>/common/js/plugins/imagemanagement/sizzle.min.js</@ofbizContentUrl>"></script>
<script type="text/javascript">
-jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('input:radio').click(function(){
var elementVal = jQuery(this).val();