Fullcalendar fix: always add new event to internal cache
This commit is contained in:
parent
4cd17f0035
commit
bf04d3fdbe
2 changed files with 22 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
--- js/fullcalendar.js.orig 2011-04-09 14:13:16.000000000 +0200
|
||||
+++ js/fullcalendar.js 2011-09-09 14:13:07.000000000 +0200
|
||||
+++ js/fullcalendar.js 2011-09-13 14:05:26.000000000 +0200
|
||||
@@ -47,12 +47,16 @@
|
||||
titleFormat: {
|
||||
month: 'MMMM yyyy',
|
||||
|
@ -107,7 +107,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
@@ -1579,10 +1609,23 @@
|
||||
@@ -1092,8 +1122,9 @@
|
||||
stickySource.events.push(event);
|
||||
event.source = stickySource;
|
||||
}
|
||||
- cache.push(event);
|
||||
}
|
||||
+
|
||||
+ cache.push(event);
|
||||
reportEvents(cache);
|
||||
}
|
||||
|
||||
@@ -1579,10 +1610,23 @@
|
||||
return 'th';
|
||||
}
|
||||
return ['st', 'nd', 'rd'][date%10-1] || 'th';
|
||||
|
@ -132,7 +143,7 @@
|
|||
|
||||
fc.applyAll = applyAll;
|
||||
|
||||
@@ -3534,10 +3577,10 @@
|
||||
@@ -3534,10 +3578,10 @@
|
||||
function slotSelectionMousedown(ev) {
|
||||
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
|
||||
unselect(ev);
|
||||
|
@ -145,7 +156,7 @@
|
|||
var d1 = cellDate(origCell);
|
||||
var d2 = cellDate(cell);
|
||||
dates = [
|
||||
@@ -3762,7 +3805,8 @@
|
||||
@@ -3762,7 +3806,8 @@
|
||||
height,
|
||||
slotSegmentContainer = getSlotSegmentContainer(),
|
||||
rtl, dis, dit,
|
||||
|
@ -155,7 +166,7 @@
|
|||
|
||||
if (rtl = opt('isRTL')) {
|
||||
dis = -1;
|
||||
@@ -3789,8 +3833,11 @@
|
||||
@@ -3789,8 +3834,11 @@
|
||||
outerWidth = availWidth / (levelI + forward + 1);
|
||||
}else{
|
||||
if (forward) {
|
||||
|
@ -169,7 +180,7 @@
|
|||
}else{
|
||||
// can be entire width, aligned left
|
||||
outerWidth = availWidth;
|
||||
@@ -3801,7 +3848,7 @@
|
||||
@@ -3801,7 +3849,7 @@
|
||||
* dis + (rtl ? availWidth - outerWidth : 0); // rtl
|
||||
seg.top = top;
|
||||
seg.left = left;
|
||||
|
@ -178,7 +189,7 @@
|
|||
seg.outerHeight = bottom - top;
|
||||
html += slotSegHtml(event, seg);
|
||||
}
|
||||
@@ -4260,7 +4307,7 @@
|
||||
@@ -4260,7 +4308,7 @@
|
||||
|
||||
function opt(name, viewNameOverride) {
|
||||
var v = options[name];
|
||||
|
@ -187,7 +198,7 @@
|
|||
return smartProperty(v, viewNameOverride || viewName);
|
||||
}
|
||||
return v;
|
||||
@@ -4804,6 +4851,8 @@
|
||||
@@ -4804,6 +4852,8 @@
|
||||
}
|
||||
seg.outerHeight = element[0].offsetHeight + val;
|
||||
}
|
||||
|
@ -196,7 +207,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@@ -5204,5 +5253,561 @@
|
||||
@@ -5204,5 +5254,561 @@
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1122,8 +1122,9 @@ function EventManager(options, _sources) {
|
|||
stickySource.events.push(event);
|
||||
event.source = stickySource;
|
||||
}
|
||||
cache.push(event);
|
||||
}
|
||||
|
||||
cache.push(event);
|
||||
reportEvents(cache);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue