|
|
|
@ -4,19 +4,7 @@ |
|
|
|
|
* (c) 2016 Adam Shaw |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
(function(factory) { |
|
|
|
|
if (typeof define === 'function' && define.amd) { |
|
|
|
|
define([ 'jquery', 'moment' ], factory); |
|
|
|
|
} |
|
|
|
|
else if (typeof exports === 'object') { // Node/CommonJS
|
|
|
|
|
module.exports = factory(require('jquery'), require('moment')); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
factory(jQuery, moment); |
|
|
|
|
} |
|
|
|
|
})(function($, moment) { |
|
|
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
var FC = $.fullCalendar = { |
|
|
|
|
version: "3.1.0", |
|
|
|
@ -132,7 +120,7 @@ function enableCursor() { |
|
|
|
|
|
|
|
|
|
// Given a total available height to fill, have `els` (essentially child rows) expand to accomodate.
|
|
|
|
|
// By default, all elements that are shorter than the recommended height are expanded uniformly, not considering
|
|
|
|
|
// any other els that are already too tall. if `shouldRedistribute` is on, it considers these tall rows and
|
|
|
|
|
// any other els that are already too tall. if `shouldRedistribute` is on, it considers these tall rows and
|
|
|
|
|
// reduces the available height.
|
|
|
|
|
function distributeHeight(els, availableHeight, shouldRedistribute) { |
|
|
|
|
|
|
|
|
@ -1695,13 +1683,13 @@ function Promise(executor) { |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Promise.immediate) { |
|
|
|
|
var origThen = promise.then; |
|
|
|
|
|
|
|
|
|
promise.then = function(onFulfilled, onRejected) { |
|
|
|
|
var state = promise.state(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (state === 'resolved') { |
|
|
|
|
if (typeof onFulfilled === 'function') { |
|
|
|
|
return Promise.resolve(onFulfilled(promise._value)); |
|
|
|
@ -6323,7 +6311,7 @@ DayGrid.mixin({ |
|
|
|
|
'<span class="fc-title">' + |
|
|
|
|
(htmlEscape(event.title || '') || ' ') + // we always want one line of height
|
|
|
|
|
'</span>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return '<a class="' + classes.join(' ') + '"' + |
|
|
|
|
(event.url ? |
|
|
|
|
' href="' + htmlEscape(event.url) + '"' : |
|
|
|
@ -6452,7 +6440,7 @@ DayGrid.mixin({ |
|
|
|
|
// Give preference to elements with certain criteria, so they have
|
|
|
|
|
// a chance to be closer to the top.
|
|
|
|
|
this.sortEventSegs(segs); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < segs.length; i++) { |
|
|
|
|
seg = segs[i]; |
|
|
|
|
|
|
|
|
@ -11043,7 +11031,7 @@ Calendar.mixin({ |
|
|
|
|
// func // callback function to be called upon change
|
|
|
|
|
// names // option names whose values should be given to func
|
|
|
|
|
// }
|
|
|
|
|
optionHandlers: null,
|
|
|
|
|
optionHandlers: null, |
|
|
|
|
|
|
|
|
|
// Calls handlerFunc immediately, and when the given option has changed.
|
|
|
|
|
// handlerFunc will be given the option value.
|
|
|
|
@ -11120,13 +11108,13 @@ Calendar.defaults = { |
|
|
|
|
|
|
|
|
|
weekNumberTitle: 'W', |
|
|
|
|
weekNumberCalculation: 'local', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//editable: false,
|
|
|
|
|
|
|
|
|
|
//nowIndicator: false,
|
|
|
|
|
|
|
|
|
|
scrollTime: '06:00:00', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// event ajax
|
|
|
|
|
lazyFetching: true, |
|
|
|
|
startParam: 'start', |
|
|
|
@ -11159,7 +11147,7 @@ Calendar.defaults = { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
allDayText: 'all-day', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// jquery-ui theming
|
|
|
|
|
theme: false, |
|
|
|
|
themeButtonIcons: { |
|
|
|
@ -11173,10 +11161,10 @@ Calendar.defaults = { |
|
|
|
|
dragOpacity: .75, |
|
|
|
|
dragRevertDuration: 500, |
|
|
|
|
dragScroll: true, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//selectable: false,
|
|
|
|
|
unselectAuto: true, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dropAccept: '*', |
|
|
|
|
|
|
|
|
|
eventOrder: 'title', |
|
|
|
@ -11186,12 +11174,12 @@ Calendar.defaults = { |
|
|
|
|
eventLimitText: 'more', |
|
|
|
|
eventLimitClick: 'popover', |
|
|
|
|
dayPopoverFormat: 'LL', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleWindowResize: true, |
|
|
|
|
windowResizeDelay: 100, // milliseconds before an updateSize happens
|
|
|
|
|
|
|
|
|
|
longPressDelay: 1000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -14043,6 +14031,7 @@ var ListViewGrid = Grid.extend({ |
|
|
|
|
var tableEl = $('<table class="fc-list-table"><tbody/></table>'); |
|
|
|
|
var tbodyEl = tableEl.find('tbody'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (dayIndex = 0; dayIndex < segsByDay.length; dayIndex++) { |
|
|
|
|
daySegs = segsByDay[dayIndex]; |
|
|
|
|
if (daySegs) { // sparse array, so might be undefined
|
|
|
|
@ -14200,7 +14189,3 @@ fcViews.listYear = { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
return FC; // export for Node/CommonJS
|
|
|
|
|
}); |