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 bc98267373 Fixed: jGrowl toast messages use wrong readmore-js option
(OFBIZ-13512)
bc98267373 is described below
commit bc9826737330215971c0df318af5fe43dc34d483
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 a7a1e2893a..0670f447bc 100644
--- a/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
+++ b/themes/common-theme/webapp/common-theme/js/util/OfbizUtil.js
@@ -1347,7 +1347,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