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}
`;