Sfoglia il codice sorgente

Merge pull request #1861 from system19/develop

Update fullcalendar.js - gcal.js - moment.js
version-14
Rushabh Mehta 9 anni fa
committed by GitHub
parent
commit
2022bfd425
7 ha cambiato i file con 1189 aggiunte e 109 eliminazioni
  1. +3
    -3
      frappe/public/js/lib/fullcalendar/fullcalendar.min.css
  2. +6
    -5
      frappe/public/js/lib/fullcalendar/fullcalendar.min.js
  3. +10
    -4
      frappe/public/js/lib/fullcalendar/fullcalendar.print.css
  4. +10
    -14
      frappe/public/js/lib/fullcalendar/gcal.js
  5. +3
    -3
      frappe/public/js/lib/moment/moment-timezone-with-data.min.js
  6. +669
    -77
      frappe/public/js/lib/moment/moment-with-locales.min.js
  7. +488
    -3
      frappe/public/js/lib/moment/moment.min.js

+ 3
- 3
frappe/public/js/lib/fullcalendar/fullcalendar.min.css
File diff soppresso perché troppo grande
Vedi File


+ 6
- 5
frappe/public/js/lib/fullcalendar/fullcalendar.min.js
File diff soppresso perché troppo grande
Vedi File


+ 10
- 4
frappe/public/js/lib/fullcalendar/fullcalendar.print.css Vedi File

@@ -1,7 +1,7 @@
/*! /*!
* FullCalendar v2.3.2 Print Stylesheet
* FullCalendar v2.8.0 Print Stylesheet
* Docs & License: http://fullcalendar.io/ * Docs & License: http://fullcalendar.io/
* (c) 2015 Adam Shaw
* (c) 2016 Adam Shaw
*/ */


/* /*
@@ -42,11 +42,17 @@ tbody,
background: #fff !important; background: #fff !important;
} }


/* kill the overlaid, absolutely-positioned common components */
/* kill the overlaid, absolutely-positioned components */
/* common... */
.fc-bg, .fc-bg,
.fc-bgevent-skeleton, .fc-bgevent-skeleton,
.fc-highlight-skeleton, .fc-highlight-skeleton,
.fc-helper-skeleton {
.fc-helper-skeleton,
/* for timegrid. within cells within table skeletons... */
.fc-bgevent-container,
.fc-business-container,
.fc-highlight-container,
.fc-helper-container {
display: none; display: none;
} }




+ 10
- 14
frappe/public/js/lib/fullcalendar/gcal.js Vedi File

@@ -1,9 +1,9 @@
/*! /*!
* FullCalendar v2.3.2 Google Calendar Plugin
* FullCalendar v2.8.0 Google Calendar Plugin
* Docs & License: http://fullcalendar.io/ * Docs & License: http://fullcalendar.io/
* (c) 2015 Adam Shaw
* (c) 2016 Adam Shaw
*/ */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory); define([ 'jquery' ], factory);
@@ -18,11 +18,11 @@




var API_BASE = 'https://www.googleapis.com/calendar/v3/calendars'; var API_BASE = 'https://www.googleapis.com/calendar/v3/calendars';
var fc = $.fullCalendar;
var applyAll = fc.applyAll;
var FC = $.fullCalendar;
var applyAll = FC.applyAll;




fc.sourceNormalizers.push(function(sourceOptions) {
FC.sourceNormalizers.push(function(sourceOptions) {
var googleCalendarId = sourceOptions.googleCalendarId; var googleCalendarId = sourceOptions.googleCalendarId;
var url = sourceOptions.url; var url = sourceOptions.url;
var match; var match;
@@ -64,7 +64,7 @@ fc.sourceNormalizers.push(function(sourceOptions) {
}); });




fc.sourceFetchers.push(function(sourceOptions, start, end, timezone) {
FC.sourceFetchers.push(function(sourceOptions, start, end, timezone) {
if (sourceOptions.googleCalendarId) { if (sourceOptions.googleCalendarId) {
return transformOptions(sourceOptions, start, end, timezone, this); // `this` is the calendar return transformOptions(sourceOptions, start, end, timezone, this); // `this` is the calendar
} }
@@ -80,17 +80,13 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {


function reportError(message, apiErrorObjs) { function reportError(message, apiErrorObjs) {
var errorObjs = apiErrorObjs || [ { message: message } ]; // to be passed into error handlers var errorObjs = apiErrorObjs || [ { message: message } ]; // to be passed into error handlers
var consoleObj = window.console;
var consoleWarnFunc = consoleObj ? (consoleObj.warn || consoleObj.log) : null;


// call error handlers // call error handlers
(sourceOptions.googleCalendarError || $.noop).apply(calendar, errorObjs); (sourceOptions.googleCalendarError || $.noop).apply(calendar, errorObjs);
(calendar.options.googleCalendarError || $.noop).apply(calendar, errorObjs); (calendar.options.googleCalendarError || $.noop).apply(calendar, errorObjs);


// print error to debug console // print error to debug console
if (consoleWarnFunc) {
consoleWarnFunc.apply(consoleObj, [ message ].concat(apiErrorObjs || []));
}
FC.warn.apply(null, [ message ].concat(apiErrorObjs || []));
} }


if (!apiKey) { if (!apiKey) {
@@ -140,10 +136,10 @@ function transformOptions(sourceOptions, start, end, timezone, calendar) {
} }
else if (data.items) { else if (data.items) {
$.each(data.items, function(i, entry) { $.each(data.items, function(i, entry) {
var url = entry.htmlLink;
var url = entry.htmlLink || null;


// make the URLs for each event show times in the correct timezone // make the URLs for each event show times in the correct timezone
if (timezoneArg) {
if (timezoneArg && url !== null) {
url = injectQsComponent(url, 'ctz=' + timezoneArg); url = injectQsComponent(url, 'ctz=' + timezoneArg);
} }




+ 3
- 3
frappe/public/js/lib/moment/moment-timezone-with-data.min.js
File diff soppresso perché troppo grande
Vedi File


+ 669
- 77
frappe/public/js/lib/moment/moment-with-locales.min.js
File diff soppresso perché troppo grande
Vedi File


+ 488
- 3
frappe/public/js/lib/moment/moment.min.js
File diff soppresso perché troppo grande
Vedi File


Caricamento…
Annulla
Salva