Close calendar popup with Esc

pull/1/head
yflory 4 years ago
parent a789d585e4
commit e6fba31884

@ -733,6 +733,12 @@ Messages.calendar_allDay = "All day";
}); });
}); });
$('body').on('keydown', function (e) {
if (e.which === 27) {
$('.tui-full-calendar-floating-layer').hide();
}
});
updateDateRange(); updateDateRange();
renderCalendar(); renderCalendar();

@ -138,7 +138,6 @@ ctx.calendars[channel] = {
var teamId = cfg.storeId; var teamId = cfg.storeId;
var data = cfg.data; var data = cfg.data;
var channel = data.channel; var channel = data.channel;
console.error(cfg);
if (!channel) { return; } if (!channel) { return; }
var c = ctx.calendars[channel]; var c = ctx.calendars[channel];

Loading…
Cancel
Save