From e2a545f89efba07f438c9a58a35d8a69b27561a2 Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Wed, 20 Aug 2025 12:18:17 +0300 Subject: [PATCH] Hide description for only whitespace body --- www/calendar/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/calendar/inner.js b/www/calendar/inner.js index eedb781d9..9c62cebef 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -412,9 +412,9 @@ define([ return `
${location_icon.outerHTML} ${str}
`; }, popupDetailBody: function(schedule) { - var str = schedule.body; + var str = schedule.body ? schedule.body.trim() : ""; //check also whitespace delete APP.eventBody; - + if (!str) { return "";} let description_icon = h('i.fa.fa-align-left.tui-full-calendar-icon', { 'aria-hidden': true }, []); let description = diffMk.render(str, true); return `${description_icon.outerHTML}
${description}
`;