mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Hide description for only whitespace body
This commit is contained in:
parent
e1314c80d4
commit
e2a545f89e
@ -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>`;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user