fullcalendar-rails 2.2.2.0 → 2.2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d00ba5f182509d96e5c5de0850a3bdbaf1b6ec31
4
- data.tar.gz: f77ccf7e2ebc3e4220d3e0bdf9210d45c6b247bb
3
+ metadata.gz: 9a4f31b11076b471449075450382076d48698af3
4
+ data.tar.gz: 54df9e3974f928747769f5c81cfd377ba5f120cf
5
5
  SHA512:
6
- metadata.gz: 8e35da098cf324f57445f782270d9633740eca4c59ddc387f7d3ae9e7d9a59a62effc6add45610ca22851ecfcc78ec1740f0c1cd54724130b11c79b90b634c0e
7
- data.tar.gz: 66046d14581647a74b540b1b6865ad81fa9ffbc2a19de89a78840fd3db614ec04efbb977a7f00843c889c65a633270b9a1480360fbf37aaff738b7dd6e5f6d10
6
+ metadata.gz: 8864863371c23e5ae7f6a0ea94691a57ab19914bb85c5f949ba50aebed0259bcf0ef8fc5f3e75b2f0134be015b22594afab66d0461e938a3102ecc145c721103
7
+ data.tar.gz: dbfedd64155d007c9eba52a430041e5fe19fdedb684be4835bc355bc711b4ca6e10893ead449013968488a71c7db9ef538e1dedba22bec948ea12ab32c157b2c
@@ -1,5 +1,5 @@
1
1
  module Fullcalendar
2
2
  module Rails
3
- VERSION = "2.2.2.0"
3
+ VERSION = "2.2.3.0"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FullCalendar v2.2.2
2
+ * FullCalendar v2.2.3
3
3
  * Docs & License: http://arshaw.com/fullcalendar/
4
4
  * (c) 2013 Adam Shaw
5
5
  */
@@ -174,7 +174,7 @@ var rtlDefaults = {
174
174
 
175
175
  ;;
176
176
 
177
- var fc = $.fullCalendar = { version: "2.2.2" };
177
+ var fc = $.fullCalendar = { version: "2.2.3" };
178
178
  var fcViews = fc.views = {};
179
179
 
180
180
 
@@ -1588,7 +1588,7 @@ function EventManager(options) { // assumed to be a calendar
1588
1588
  function getSourcePrimitive(source) {
1589
1589
  return (
1590
1590
  (typeof source === 'object') ? // a normalized event source?
1591
- (source.origArray || source.url || source.events) : // get the primitive
1591
+ (source.origArray || source.googleCalendarId || source.url || source.events) : // get the primitive
1592
1592
  null
1593
1593
  ) ||
1594
1594
  source; // the given argument *is* the primitive
@@ -1812,7 +1812,7 @@ function EventManager(options) { // assumed to be a calendar
1812
1812
  if (end) {
1813
1813
  end = t.moment(end);
1814
1814
  if (!end.isValid()) {
1815
- return false;
1815
+ end = null; // let defaults take over
1816
1816
  }
1817
1817
  }
1818
1818
 
@@ -1864,6 +1864,10 @@ function EventManager(options) { // assumed to be a calendar
1864
1864
  }
1865
1865
  }
1866
1866
 
1867
+ if (end && end <= start) { // end is exclusive. must be after start
1868
+ end = null; // let defaults take over
1869
+ }
1870
+
1867
1871
  event.allDay = allDay;
1868
1872
  event.start = start;
1869
1873
  event.end = end || null; // ensure null if falsy
@@ -1879,11 +1883,9 @@ function EventManager(options) { // assumed to be a calendar
1879
1883
  // If the given event is a recurring event, break it down into an array of individual instances.
1880
1884
  // If not a recurring event, return an array with the single original event.
1881
1885
  // If given a falsy input (probably because of a failed buildEventFromInput call), returns an empty array.
1882
- function expandEvent(abstractEvent) {
1886
+ // HACK: can override the recurring window by providing custom rangeStart/rangeEnd (for businessHours).
1887
+ function expandEvent(abstractEvent, _rangeStart, _rangeEnd) {
1883
1888
  var events = [];
1884
- var view;
1885
- var _rangeStart = rangeStart;
1886
- var _rangeEnd = rangeEnd;
1887
1889
  var dowHash;
1888
1890
  var dow;
1889
1891
  var i;
@@ -1892,12 +1894,8 @@ function EventManager(options) { // assumed to be a calendar
1892
1894
  var start, end;
1893
1895
  var event;
1894
1896
 
1895
- // hack for when fetchEvents hasn't been called yet (calculating businessHours for example)
1896
- if (!_rangeStart || !_rangeEnd) {
1897
- view = t.getView();
1898
- _rangeStart = view.start;
1899
- _rangeEnd = view.end;
1900
- }
1897
+ _rangeStart = _rangeStart || rangeStart;
1898
+ _rangeEnd = _rangeEnd || rangeEnd;
1901
1899
 
1902
1900
  if (abstractEvent) {
1903
1901
  if (abstractEvent._recurring) {
@@ -2129,7 +2127,7 @@ function EventManager(options) { // assumed to be a calendar
2129
2127
  t.getBusinessHoursEvents = getBusinessHoursEvents;
2130
2128
 
2131
2129
 
2132
- // Returns an array of events as to when the business hours occur in the current view.
2130
+ // Returns an array of events as to when the business hours occur in the given view.
2133
2131
  // Abuse of our event system :(
2134
2132
  function getBusinessHoursEvents() {
2135
2133
  var optionVal = options.businessHours;
@@ -2140,6 +2138,7 @@ function EventManager(options) { // assumed to be a calendar
2140
2138
  dow: [ 1, 2, 3, 4, 5 ], // monday - friday
2141
2139
  rendering: 'inverse-background'
2142
2140
  };
2141
+ var view = t.getView();
2143
2142
  var eventInput;
2144
2143
 
2145
2144
  if (optionVal) {
@@ -2154,7 +2153,11 @@ function EventManager(options) { // assumed to be a calendar
2154
2153
  }
2155
2154
 
2156
2155
  if (eventInput) {
2157
- return expandEvent(buildEventFromInput(eventInput));
2156
+ return expandEvent(
2157
+ buildEventFromInput(eventInput),
2158
+ view.start,
2159
+ view.end
2160
+ );
2158
2161
  }
2159
2162
 
2160
2163
  return [];
@@ -2599,11 +2602,6 @@ function isNativeDate(input) {
2599
2602
  }
2600
2603
 
2601
2604
 
2602
- function dateCompare(a, b) { // works with Moments and native Dates
2603
- return a - b;
2604
- }
2605
-
2606
-
2607
2605
  // Returns a boolean about whether the given input is a time string, like "06:40:00" or "06:00"
2608
2606
  function isTimeString(str) {
2609
2607
  return /^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(str);
@@ -2668,6 +2666,11 @@ function capitaliseFirstLetter(str) {
2668
2666
  }
2669
2667
 
2670
2668
 
2669
+ function compareNumbers(a, b) { // for .sort()
2670
+ return a - b;
2671
+ }
2672
+
2673
+
2671
2674
  // Returns a function, that, as long as it continues to be invoked, will not
2672
2675
  // be triggered. The function will be called after it stops being called for
2673
2676
  // N milliseconds.
@@ -4501,7 +4504,7 @@ $.extend(Grid.prototype, {
4501
4504
 
4502
4505
  dayEl = _this.getCellDayEl(cell);
4503
4506
 
4504
- dates = [ date, dragListener.origDate ].sort(dateCompare);
4507
+ dates = [ date, dragListener.origDate ].sort(compareNumbers); // works with Moments
4505
4508
  start = dates[0];
4506
4509
  end = dates[1].clone().add(_this.cellDuration);
4507
4510
 
@@ -8168,7 +8171,7 @@ function View(calendar) {
8168
8171
  var segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);
8169
8172
 
8170
8173
  // view might be RTL, so order by leftmost column
8171
- var cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();
8174
+ var cols = [ segmentCellFirst.col, segmentCellLast.col ].sort(compareNumbers);
8172
8175
 
8173
8176
  // Determine if segment's first/last cell is the beginning/end of the date range.
8174
8177
  // We need to compare "day offset" because "cell offsets" are often ambiguous and
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FullCalendar v2.2.2 Google Calendar Plugin
2
+ * FullCalendar v2.2.3 Google Calendar Plugin
3
3
  * Docs & License: http://arshaw.com/fullcalendar/
4
4
  * (c) 2013 Adam Shaw
5
5
  */
@@ -27,8 +27,9 @@ fc.sourceNormalizers.push(function(sourceOptions) {
27
27
  // if the Google Calendar ID hasn't been explicitly defined
28
28
  if (!googleCalendarId && url) {
29
29
 
30
- // detect if the ID was specified as a single string
31
- if ((match = /^[^\/]+@([^\/]+\.)?calendar\.google\.com$/.test(url))) {
30
+ // detect if the ID was specified as a single string.
31
+ // will match calendars like "asdf1234@calendar.google.com" in addition to person email calendars.
32
+ if ((match = /^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(url))) {
32
33
  googleCalendarId = url;
33
34
  }
34
35
  // try to scrape it out of a V1 or V3 API feed URL
@@ -54,6 +55,7 @@ fc.sourceNormalizers.push(function(sourceOptions) {
54
55
 
55
56
  // We want removeEventSource to work, but it won't know about the googleCalendarId primitive.
56
57
  // Shoehorn it into the url, which will function as the unique primitive. Won't cause side effects.
58
+ // This hack is obsolete since 2.2.3, but keep it so this plugin file is compatible with old versions.
57
59
  sourceOptions.url = googleCalendarId;
58
60
  }
59
61
  });
@@ -71,6 +73,7 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
71
73
  var apiKey = sourceOptions.googleCalendarApiKey || calendar.options.googleCalendarApiKey;
72
74
  var success = sourceOptions.success;
73
75
  var data;
76
+ var timezoneArg; // populated when a specific timezone. escaped to Google's liking
74
77
 
75
78
  function reportError(message, apiErrorObjs) {
76
79
  var errorObjs = apiErrorObjs || [ { message: message } ]; // to be passed into error handlers
@@ -103,10 +106,16 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
103
106
  end = end.clone().utc().add(1, 'day');
104
107
  }
105
108
 
109
+ // when sending timezone names to Google, only accepts underscores, not spaces
110
+ if (timezone && timezone != 'local') {
111
+ timezoneArg = timezone.replace(' ', '_');
112
+ }
113
+
106
114
  data = $.extend({}, sourceOptions.data || {}, {
107
115
  key: apiKey,
108
116
  timeMin: start.format(),
109
117
  timeMax: end.format(),
118
+ timeZone: timezoneArg,
110
119
  singleEvents: true,
111
120
  maxResults: 9999
112
121
  });
@@ -115,9 +124,9 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
115
124
  googleCalendarId: null, // prevents source-normalizing from happening again
116
125
  url: url,
117
126
  data: data,
118
- timezoneParam: 'timeZone',
119
127
  startParam: false, // `false` omits this parameter. we already included it above
120
128
  endParam: false, // same
129
+ timezoneParam: false, // same
121
130
  success: function(data) {
122
131
  var events = [];
123
132
  var successArgs;
@@ -128,12 +137,19 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
128
137
  }
129
138
  else if (data.items) {
130
139
  $.each(data.items, function(i, entry) {
140
+ var url = entry.htmlLink;
141
+
142
+ // make the URLs for each event show times in the correct timezone
143
+ if (timezoneArg) {
144
+ url = injectQsComponent(url, 'ctz=' + timezoneArg);
145
+ }
146
+
131
147
  events.push({
132
148
  id: entry.id,
133
149
  title: entry.summary,
134
150
  start: entry.start.dateTime || entry.start.date, // try timed. will fall back to all-day
135
151
  end: entry.end.dateTime || entry.end.date, // same
136
- url: entry.htmlLink,
152
+ url: url,
137
153
  location: entry.location,
138
154
  description: entry.description
139
155
  });
@@ -153,4 +169,13 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
153
169
  }
154
170
 
155
171
 
156
- });
172
+ // Injects a string like "arg=value" into the querystring of a URL
173
+ function injectQsComponent(url, component) {
174
+ // inject it after the querystring but before the fragment
175
+ return url.replace(/(\?.*?)?(#|$)/, function(whole, qs, hash) {
176
+ return (qs ? qs + '&' : '?') + component + hash;
177
+ });
178
+ }
179
+
180
+
181
+ });
@@ -1 +1 @@
1
- (function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t){var n=e.split("_");return 1===t%10&&11!==t%100?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function r(e,t,r){var a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?t?"минута":"минуту":e+" "+n(a[r],+e)}function a(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function i(e,t){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function s(e,t){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},r=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[r][e.day()]}(t.defineLocale||t.lang).call(t,"ru",{months:a,monthsShort:i,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:r,mm:r,h:"час",hh:r,d:"день",dd:r,M:"месяц",MM:r,y:"год",yy:r},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("ru","ru",{closeText:"Закрыть",prevText:"&#x3C;Пред",nextText:"След&#x3E;",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("ru",{defaultButtonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e}})});
1
+ (function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t){var n=e.split("_");return 1===t%10&&11!==t%100?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function a(e,t,a){var r={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===a?t?"минута":"минуту":e+" "+n(r[a],+e)}function r(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function i(e,t){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function s(e,t){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},a=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[a][e.day()]}(t.defineLocale||t.lang).call(t,"ru",{months:r,monthsShort:i,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("ru","ru",{closeText:"Закрыть",prevText:"&#x3C;Пред",nextText:"След&#x3E;",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("ru",{defaultButtonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e}})});
@@ -1 +1 @@
1
- (function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e){return e>1&&5>e}function r(e,t,r,a){var i=e+" ";switch(r){case"s":return t||a?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(n(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(n(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(n(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(n(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(n(e)?"roky":"rokov"):i+"rokmi"}}var a="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");(t.defineLocale||t.lang).call(t,"sk",{months:a,monthsShort:i,monthsParse:function(e,t){var n,r=[];for(n=0;12>n;n++)r[n]=RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(a,i),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("sk","sk",{closeText:"Zavrieť",prevText:"&#x3C;Predchádzajúci",nextText:"Nasledujúci&#x3E;",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("sk",{defaultButtonText:{month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},allDayText:"Celý deň",eventLimitText:function(e){return"+ďalšie: "+e}})});
1
+ (function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e){return e>1&&5>e}function a(e,t,a,r){var i=e+" ";switch(a){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?i+(n(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(n(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(n(e)?"dni":"dní"):i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(n(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(n(e)?"roky":"rokov"):i+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");(t.defineLocale||t.lang).call(t,"sk",{months:r,monthsShort:i,monthsParse:function(e,t){var n,a=[];for(n=0;12>n;n++)a[n]=RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return a}(r,i),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("sk","sk",{closeText:"Zavrieť",prevText:"&#x3C;Predchádzajúci",nextText:"Nasledujúci&#x3E;",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("sk",{defaultButtonText:{month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},allDayText:"Celý deň",eventLimitText:function(e){return"+ďalšie: "+e}})});
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FullCalendar v2.2.2 Stylesheet
2
+ * FullCalendar v2.2.3 Stylesheet
3
3
  * Docs & License: http://arshaw.com/fullcalendar/
4
4
  * (c) 2013 Adam Shaw
5
5
  */
@@ -974,4 +974,4 @@ be a descendant of the grid when it is being dragged.
974
974
 
975
975
  .fc-time-grid-event .fc-resizer:after {
976
976
  content: "=";
977
- }
977
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FullCalendar v2.2.2 Print Stylesheet
2
+ * FullCalendar v2.2.3 Print Stylesheet
3
3
  * Docs & License: http://arshaw.com/fullcalendar/
4
4
  * (c) 2013 Adam Shaw
5
5
  */
@@ -199,4 +199,4 @@ tbody,
199
199
  .fc-button-group,
200
200
  .fc button {
201
201
  display: none; /* don't display any button-related controls */
202
- }
202
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullcalendar-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2.0
4
+ version: 2.2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bokmann
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-21 00:00:00.000000000 Z
12
+ date: 2014-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails