|
|
|
@ -891,6 +891,31 @@ Messages.calendar_allDay = "All day";
|
|
|
|
|
}
|
|
|
|
|
var isUpdate = Boolean($el.find('#tui-full-calendar-schedule-title').val());
|
|
|
|
|
if (!isUpdate) { $el.find('.tui-full-calendar-dropdown-menu li').first().click(); }
|
|
|
|
|
|
|
|
|
|
var $cbox = $el.find('#tui-full-calendar-schedule-allday');
|
|
|
|
|
var $start = $el.find('.tui-full-calendar-section-start-date');
|
|
|
|
|
var $dash = $el.find('.tui-full-calendar-section-date-dash');
|
|
|
|
|
var $end = $el.find('.tui-full-calendar-section-end-date');
|
|
|
|
|
var allDay = $cbox.is(':checked');
|
|
|
|
|
if (allDay) {
|
|
|
|
|
$start.hide();
|
|
|
|
|
$dash.hide();
|
|
|
|
|
$end.hide();
|
|
|
|
|
}
|
|
|
|
|
$el.find('.tui-full-calendar-section-allday').click(function () {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
var allDay = $cbox.is(':checked');
|
|
|
|
|
if (allDay) {
|
|
|
|
|
$start.hide();
|
|
|
|
|
$dash.hide();
|
|
|
|
|
$end.hide();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$start.show();
|
|
|
|
|
$dash.show();
|
|
|
|
|
$end.show();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var onCalendarEditPopup = function (el) {
|
|
|
|
|
var $el = $(el);
|
|
|
|
|