| Issue 1700: | If agenda event is too short, don't overwrite .fc-event-time | |
| Back to list |
Hi there,
first, I am totally new to this group. So my question is, on how I can prevent fullcalendar from changing event.title if event just covers one timeslot.
I admit, in most cases it fits the needs of the calendar owner. Only start time and description from below are shown. Ok. But in my case I overwrite the title by:
element.find(".fc-event-title").html(event.firstItem.name + ' - ' + event.title + '<br />' + event.secondItem.option);
This information is getting lost by overwriting the title as core does.
Any suggestions on how I can sole this?
thx in advance.
Mabe
Aug 22, 2013
(No comment was entered for this change.)
Summary:
If agenda event is too short, don't overwrite .fc-event-time
(was: Prevent event.title from changing if event just covers one slot)
Status: Discussing Labels: Type-Behavior
Jul 22, 2014
(No comment was entered for this change.)
Labels:
milestone-skeleton
Jul 23, 2014
This is fixed in v2.1 (beta) http://blog.arshaw.com/1/post/2014/07/fullcalendar-210-beta.html The time area is never replaced with the title, no matter how short the event element gets. I would really appreciate if you could verify this. Thanks a lot!
Aug 14, 2014
I take it back, I'm not completely satisfied with my solution in 2.1.0-beta. I think things should still condense when the event is too short. however, I think the .fc-title and .fc-time should stay as distinct elements. they should just be display inline, so that they are on the same line. This solution would still allow for you to inject custom HTML into .fc-event-title (.fc-title in 2.1)
Summary:
[skeleton] If agenda event is too short, don't overwrite .fc-event-time
(was: If agenda event is too short, don't overwrite .fc-event-time)
Status: Accepted
Aug 14, 2014
(No comment was entered for this change.)
Summary:
If agenda event is too short, don't overwrite .fc-event-time
(was: [skeleton] If agenda event is too short, don't overwrite .fc-event-time)
Aug 19, 2014
This issue has been fixed in the v2.1.0-beta3. http://blog.arshaw.com/1/post/2014/07/fullcalendar-210-beta.html I would greatly appreciate if you could verify this. Thanks!
Status:
Implemented
Aug 26, 2014
This issue has been resolved with the official release of v2.1.0: http://blog.arshaw.com/1/post/2014/08/fullcalendar-210-released.html Please post any follow-up bug reports or feature requests as separate issues. Thanks.
Status:
Released
|
|
| ► Sign in to add a comment |
found it. changed following lines according to my needs: if (seg.contentTop !== undefined && height - seg.contentTop < 10) { // not enough room for title, put it in the time header eventElement.find('div.fc-event-time') .text(formatDate(event.start, opt('timeFormat')) + ' - ' + event.feUserLabel + ' - ' + event.title); eventElement.find('div.fc-event-title').remove(); } thanks for this great piece of open source. best, mabe