Adam Shaw 8 ani în urmă
părinte
comite
d91cadf003
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/gcal/intro.js
  2. 1 1
      src/models/event/EventDefDateMutation.js

+ 1 - 1
src/gcal/intro.js

@@ -3,7 +3,7 @@
  * Docs & License: <%= homepage %>
  * Docs & License: <%= homepage %>
  * (c) <%= copyright %>
  * (c) <%= copyright %>
  */
  */
- 
+
 (function(factory) {
 (function(factory) {
 	if (typeof define === 'function' && define.amd) {
 	if (typeof define === 'function' && define.amd) {
 		define([ 'jquery' ], factory);
 		define([ 'jquery' ], factory);

+ 1 - 1
src/models/event/EventDefDateMutation.js

@@ -80,7 +80,7 @@ var EventDefDateMutation = Class.extend({
 
 
 		// TODO: okay to access calendar option?
 		// TODO: okay to access calendar option?
 		if (!end && calendar.opt('forceEventDuration')) {
 		if (!end && calendar.opt('forceEventDuration')) {
-			end = calendar.getDefaultEventEnd(eventDef.isAllDay(), start);
+			end = calendar.getDefaultEventEnd(eventDateProfile.isAllDay(), start);
 		}
 		}
 
 
 		return new EventDateProfile(start, end, calendar);
 		return new EventDateProfile(start, end, calendar);