Преглед изворни кода

fix bug with resizing events with timezones in agenda slots

Adam Shaw пре 11 година
родитељ
комит
d11aad32e9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/common/Grid.events.js

+ 1 - 1
src/common/Grid.events.js

@@ -302,7 +302,7 @@ $.extend(Grid.prototype, {
 			},
 			},
 			cellOver: function(cell, date) {
 			cellOver: function(cell, date) {
 				// compute the new end. don't allow it to go before the event's start
 				// 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;
 					date = start;
 				}
 				}
 				newEnd = date.clone().add(_this.cellDuration); // make it an exclusive end
 				newEnd = date.clone().add(_this.cellDuration); // make it an exclusive end