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.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 @@
|
@@ -47,12 +47,16 @@
|
||||||
titleFormat: {
|
titleFormat: {
|
||||||
month: 'MMMM yyyy',
|
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 'th';
|
||||||
}
|
}
|
||||||
return ['st', 'nd', 'rd'][date%10-1] || 'th';
|
return ['st', 'nd', 'rd'][date%10-1] || 'th';
|
||||||
|
@ -132,7 +143,7 @@
|
||||||
|
|
||||||
fc.applyAll = applyAll;
|
fc.applyAll = applyAll;
|
||||||
|
|
||||||
@@ -3534,10 +3577,10 @@
|
@@ -3534,10 +3578,10 @@
|
||||||
function slotSelectionMousedown(ev) {
|
function slotSelectionMousedown(ev) {
|
||||||
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
|
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
|
||||||
unselect(ev);
|
unselect(ev);
|
||||||
|
@ -145,7 +156,7 @@
|
||||||
var d1 = cellDate(origCell);
|
var d1 = cellDate(origCell);
|
||||||
var d2 = cellDate(cell);
|
var d2 = cellDate(cell);
|
||||||
dates = [
|
dates = [
|
||||||
@@ -3762,7 +3805,8 @@
|
@@ -3762,7 +3806,8 @@
|
||||||
height,
|
height,
|
||||||
slotSegmentContainer = getSlotSegmentContainer(),
|
slotSegmentContainer = getSlotSegmentContainer(),
|
||||||
rtl, dis, dit,
|
rtl, dis, dit,
|
||||||
|
@ -155,7 +166,7 @@
|
||||||
|
|
||||||
if (rtl = opt('isRTL')) {
|
if (rtl = opt('isRTL')) {
|
||||||
dis = -1;
|
dis = -1;
|
||||||
@@ -3789,8 +3833,11 @@
|
@@ -3789,8 +3834,11 @@
|
||||||
outerWidth = availWidth / (levelI + forward + 1);
|
outerWidth = availWidth / (levelI + forward + 1);
|
||||||
}else{
|
}else{
|
||||||
if (forward) {
|
if (forward) {
|
||||||
|
@ -169,7 +180,7 @@
|
||||||
}else{
|
}else{
|
||||||
// can be entire width, aligned left
|
// can be entire width, aligned left
|
||||||
outerWidth = availWidth;
|
outerWidth = availWidth;
|
||||||
@@ -3801,7 +3848,7 @@
|
@@ -3801,7 +3849,7 @@
|
||||||
* dis + (rtl ? availWidth - outerWidth : 0); // rtl
|
* dis + (rtl ? availWidth - outerWidth : 0); // rtl
|
||||||
seg.top = top;
|
seg.top = top;
|
||||||
seg.left = left;
|
seg.left = left;
|
||||||
|
@ -178,7 +189,7 @@
|
||||||
seg.outerHeight = bottom - top;
|
seg.outerHeight = bottom - top;
|
||||||
html += slotSegHtml(event, seg);
|
html += slotSegHtml(event, seg);
|
||||||
}
|
}
|
||||||
@@ -4260,7 +4307,7 @@
|
@@ -4260,7 +4308,7 @@
|
||||||
|
|
||||||
function opt(name, viewNameOverride) {
|
function opt(name, viewNameOverride) {
|
||||||
var v = options[name];
|
var v = options[name];
|
||||||
|
@ -187,7 +198,7 @@
|
||||||
return smartProperty(v, viewNameOverride || viewName);
|
return smartProperty(v, viewNameOverride || viewName);
|
||||||
}
|
}
|
||||||
return v;
|
return v;
|
||||||
@@ -4804,6 +4851,8 @@
|
@@ -4804,6 +4852,8 @@
|
||||||
}
|
}
|
||||||
seg.outerHeight = element[0].offsetHeight + val;
|
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);
|
stickySource.events.push(event);
|
||||||
event.source = stickySource;
|
event.source = stickySource;
|
||||||
}
|
}
|
||||||
cache.push(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cache.push(event);
|
||||||
reportEvents(cache);
|
reportEvents(cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue