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 46be5e800f Fixed: jGrowl toast messages use wrong readmore-js option
(OFBIZ-13512)
46be5e800f is described below
commit 46be5e800fc45f05c19395460990ce7c14ed6a5b
Author: Mridul Pathak <[email protected]>
AuthorDate: Mon Aug 31 20:33:27 2026 +0530
Fixed: jGrowl toast messages use wrong readmore-js option (OFBIZ-13512)
showjGrowlMessage initialized the vendored readmore-js plugin with
maxHeight, but readmore-js has no such option — the real option is
collapsedHeight. jQuery.extend silently drops unrecognized keys, so the plugin
fell back to its default collapsedHeight of 200px, meaning jGrowl messages
under 200px never showed the truncation toggle and taller ones collapsed at
200px instead of the intended 75px. Renamed maxHeight to collapsedHeight in the
readmore() call.
---
themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 05a95733aa..6f71e938f7 100644
--- a/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
+++ b/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
@@ -1341,7 +1341,7 @@ function showjGrowlMessage(errMessage, classEvent,
stickyValue, showAllLabel, co
moreLink: '<a href="#" style="display: block; width: auto;
padding: 0px;text-align: right; margin-top: 10px; color: #ffffff; font-size:
0.8em">' + showAllLabel + '</a>',
lessLink: '<a href="#" style="display: block; width: auto;
padding: 0px;text-align: right; margin-top: 10px; color: #ffffff; font-size:
0.8em">' + collapseLabel + '</a>',
- maxHeight: 75
+ collapsedHeight: 75
});
},
speed: jGrowlSpeed