Adam Shaw пре 7 година
родитељ
комит
fae02b1e67

+ 0 - 5
plugins/gcal/main.ts

@@ -132,11 +132,6 @@ function buildRequestParams(range, apiKey: string, extraData, dateEnv) {
     }
     }
   )
   )
 
 
-  // when sending timezone names to Google, only accepts underscores, not spaces
-  if (dateEnv.timeZone !== 'local') {
-    params.timeZone = dateEnv.timeZone.replace(' ', '_')
-  }
-
   return params
   return params
 }
 }
 
 

+ 0 - 1
src/basic/DayGrid.ts

@@ -164,7 +164,6 @@ export default class DayGrid extends DateComponent {
         this.publiclyTrigger('dayRender', [
         this.publiclyTrigger('dayRender', [
           {
           {
             date: dateEnv.toDate(this.getCellDate(row, col)),
             date: dateEnv.toDate(this.getCellDate(row, col)),
-            allDay: true,
             el: this.getCellEl(row, col),
             el: this.getCellEl(row, col),
             view
             view
           }
           }

+ 1 - 2
src/component/renderers/EventRenderer.ts

@@ -42,8 +42,7 @@ export default class EventRenderer {
     let displayEventEnd
     let displayEventEnd
 
 
     this.eventTimeFormat = createFormatter(
     this.eventTimeFormat = createFormatter(
-      this.opt('eventTimeFormat') ||
-      this.computeEventTimeFormat(),
+      this.opt('eventTimeFormat') || this.computeEventTimeFormat(),
       this.opt('defaultRangeSeparator')
       this.opt('defaultRangeSeparator')
     )
     )
 
 

+ 2 - 2
src/datelib/formatting-native.ts

@@ -268,7 +268,7 @@ function injectTzoStr(s: string, tzoStr: string): string {
 
 
   // IE11 doesn't include UTC/GMT in the original string, so append to end
   // IE11 doesn't include UTC/GMT in the original string, so append to end
   if (!replaced) {
   if (!replaced) {
-    s = s + ' ' + tzoStr
+    s += ' ' + tzoStr
   }
   }
 
 
   return s
   return s
@@ -286,7 +286,7 @@ function formatWeekNumber(num: number, weekLabel: string, locale: Locale, displa
 
 
   parts.push(locale.simpleNumberFormat.format(num))
   parts.push(locale.simpleNumberFormat.format(num))
 
 
-  if (locale.options.isRtl) {
+  if (locale.options.isRtl) { // TODO: use control characters instead?
     parts.reverse()
     parts.reverse()
   }
   }
 
 

+ 3 - 3
src/reducers/eventSources.ts

@@ -146,15 +146,15 @@ function fetchSource(eventSource: EventSource, fetchRange: DateRange | null, cal
       })
       })
     },
     },
     function(error) {
     function(error) {
-      let calError = calendar.opt('eventSourceFailure')
+      let callFailure = calendar.opt('eventSourceFailure')
 
 
       warn(error.message, error)
       warn(error.message, error)
 
 
       if (eventSource.failure) {
       if (eventSource.failure) {
         eventSource.failure(error)
         eventSource.failure(error)
       }
       }
-      if (calError) {
-        calError(error)
+      if (callFailure) {
+        callFailure(error)
       }
       }
 
 
       calendar.dispatch({
       calendar.dispatch({

+ 0 - 4
src/types/input-types.ts

@@ -127,10 +127,6 @@ export interface OptionsInputBase {
   columnHeaderText?: string | ((date: DateInput) => string)
   columnHeaderText?: string | ((date: DateInput) => string)
   columnHeaderHtml?: string | ((date: DateInput) => string)
   columnHeaderHtml?: string | ((date: DateInput) => string)
   titleFormat?: FormatterInput
   titleFormat?: FormatterInput
-  monthNames?: string[]
-  monthNamesShort?: string[]
-  dayNames?: string[]
-  dayNamesShort?: string[]
   weekLabel?: string
   weekLabel?: string
   displayEventTime?: boolean
   displayEventTime?: boolean
   displayEventEnd?: boolean
   displayEventEnd?: boolean