mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
fixed visual bug in calendar
This commit is contained in:
parent
9d915e63a0
commit
49ebd5b576
@ -388,12 +388,11 @@ function recalculate_events(calendar, newEvent, from, to, create) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (create === true) {
|
||||||
var title = "";
|
var title = "";
|
||||||
if (time_format(from) === "00:00:00" && time_format(to) === "00:00:00") {
|
if (time_format(from) === "00:00:00" && time_format(to) === "00:00:00") {
|
||||||
title = "All day";
|
title = "All day";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (create === true) {
|
|
||||||
calendar.addEvent({
|
calendar.addEvent({
|
||||||
title: title,
|
title: title,
|
||||||
start: from,
|
start: from,
|
||||||
@ -401,6 +400,12 @@ function recalculate_events(calendar, newEvent, from, to, create) {
|
|||||||
id: uniqId()
|
id: uniqId()
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (!$.isEmptyObject(newEvent)) {
|
||||||
|
newEvent._def.title = "";
|
||||||
|
if (time_format(from) === "00:00:00" && time_format(to) === "00:00:00") {
|
||||||
|
newEvent._def.title = "All day";
|
||||||
|
}
|
||||||
|
}
|
||||||
// Update event.
|
// Update event.
|
||||||
newEvent.setDates(from, to);
|
newEvent.setDates(from, to);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user