Hide description for only whitespace body

This commit is contained in:
DianaXWiki 2025-08-20 12:18:17 +03:00
parent e1314c80d4
commit e2a545f89e

View File

@ -412,9 +412,9 @@ define([
return `<div class="event-location"> ${location_icon.outerHTML} ${str} </div>`;
},
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}<div class="event-description">${description}</div>`;