Update Fullcalendar to inherit views (just removed header and end line)

See BT#11972
pull/2487/head
jmontoyaa 9 years ago
parent 766c4d4880
commit 0eb9f9c949
  1. 43
      app/Resources/public/assets/fullcalendar/dist/fullcalendar.js

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