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

commit 6af76d1f93a13115432b95b440f636053e88eb36
Author: Mridul Pathak <[email protected]>
AuthorDate: Sun Aug 30 09:26:26 2026 +0530

    Replace removed jQuery.isArray/parseJSON with native equivalents in the 
three live call sites (fieldlookup.js, OfbizUtil.js autocomplete + inplace-edit)
---
 themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js   | 4 ++--
 themes/common-theme/webapp/common-theme/js/util/fieldlookup.js | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js 
b/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
index 47a6ef3b08..3ca223e702 100644
--- a/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
+++ b/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
@@ -943,7 +943,7 @@ function ajaxAutoCompleter(areaCsvString, showDescription, 
defaultMinLength, def
             delay: defaultDelay,
             source: function (request, response) {
                 var queryArgs = { "term": request.term };
-                if (typeof args == "object" && jQuery.isArray(args)) {
+                if (typeof args == "object" && Array.isArray(args)) {
                     for (var i = 0; i < args.length; i++) {
                         queryArgs["parm" + i] = 
jQuery(DOMPurify.sanitize(args[i]).val())
                     }
@@ -1236,7 +1236,7 @@ function ajaxInPlaceEditDisplayField(element, url, 
options) {
             value = value.replace(/\n/g, " ");
             value = value.replace(/\"/g, "&quot;");
 
-            var resultField = jQuery.parseJSON('{"' + settings.name + '":"' + 
value + '"}');
+            var resultField = JSON.parse('{"' + settings.name + '":"' + value 
+ '"}');
             // merge both parameter objects together
             jQuery.extend(settings.submitdata, resultField);
             jQuery.ajax({
diff --git a/themes/common-theme/webapp/common-theme/js/util/fieldlookup.js 
b/themes/common-theme/webapp/common-theme/js/util/fieldlookup.js
index 75eb22005d..0892052cdb 100644
--- a/themes/common-theme/webapp/common-theme/js/util/fieldlookup.js
+++ b/themes/common-theme/webapp/common-theme/js/util/fieldlookup.js
@@ -302,7 +302,7 @@ var Lookup = function(options) {
         _lookupContainer.empty();
 
         var queryArgs = "presentation=" + options.presentation;
-        if (typeof options.args == "object" && jQuery.isArray(options.args)) {
+        if (typeof options.args == "object" && Array.isArray(options.args)) {
             for ( var i = 0; i < options.args.length; i++) {
                 queryArgs += "&parm" + i + "=" + 
jQuery(DOMPurify.sanitize(options.args[i])).val();
             }

Reply via email to