fix bug with resizing events with timezones in agenda slots

This commit is contained in:
Adam Shaw
2014-08-25 22:22:06 -07:00
parent b2fbdfa092
commit d11aad32e9
+1 -1
View File
@@ -302,7 +302,7 @@ $.extend(Grid.prototype, {
},
cellOver: function(cell, date) {
// compute the new end. don't allow it to go before the event's start
if (date < start) {
if (date.isBefore(start)) { // allows comparing ambig to non-ambig
date = start;
}
newEnd = date.clone().add(_this.cellDuration); // make it an exclusive end