mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-11 11:18:47 +08:00
version 2.1.1
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fullcalendar",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"description": "Full-sized drag & drop event calendar",
|
||||
"keywords": [
|
||||
"calendar",
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* FullCalendar v2.1.0 Stylesheet
|
||||
* FullCalendar v2.1.1 Stylesheet
|
||||
* Docs & License: http://arshaw.com/fullcalendar/
|
||||
* (c) 2013 Adam Shaw
|
||||
*/
|
||||
|
||||
Vendored
+37
-15
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* FullCalendar v2.1.0
|
||||
* FullCalendar v2.1.1
|
||||
* Docs & License: http://arshaw.com/fullcalendar/
|
||||
* (c) 2013 Adam Shaw
|
||||
*/
|
||||
@@ -174,7 +174,7 @@ var rtlDefaults = {
|
||||
|
||||
;;
|
||||
|
||||
var fc = $.fullCalendar = { version: "2.1.0" };
|
||||
var fc = $.fullCalendar = { version: "2.1.1" };
|
||||
var fcViews = fc.views = {};
|
||||
|
||||
|
||||
@@ -1548,6 +1548,7 @@ function EventManager(options) { // assumed to be a calendar
|
||||
|
||||
// for array sources, we convert to standard Event Objects up front
|
||||
if ($.isArray(source.events)) {
|
||||
source.origArray = source.events; // for removeEventSource
|
||||
source.events = $.map(source.events, function(eventInput) {
|
||||
return buildEvent(eventInput, source);
|
||||
});
|
||||
@@ -1580,7 +1581,12 @@ function EventManager(options) { // assumed to be a calendar
|
||||
|
||||
|
||||
function getSourcePrimitive(source) {
|
||||
return ((typeof source == 'object') ? (source.events || source.url) : '') || source;
|
||||
return (
|
||||
(typeof source === 'object') ? // a normalized event source?
|
||||
(source.origArray || source.url || source.events) : // get the primitive
|
||||
null
|
||||
) ||
|
||||
source; // the given argument *is* the primitive
|
||||
}
|
||||
|
||||
|
||||
@@ -4343,9 +4349,9 @@ $.extend(Grid.prototype, {
|
||||
|
||||
$.extend(Grid.prototype, {
|
||||
|
||||
isMouseOverSeg: false, // is the user's mouse over a segment?
|
||||
isDraggingSeg: false, // is a segment being dragged?
|
||||
isResizingSeg: false, // is a segment being resized?
|
||||
mousedOverSeg: null, // the segment object the user's mouse is over. null if over nothing
|
||||
isDraggingSeg: false, // is a segment being dragged? boolean
|
||||
isResizingSeg: false, // is a segment being resized? boolean
|
||||
|
||||
|
||||
// Renders the given events onto the grid
|
||||
@@ -4360,9 +4366,9 @@ $.extend(Grid.prototype, {
|
||||
},
|
||||
|
||||
|
||||
// Unrenders all events
|
||||
// Unrenders all events. Subclasses should implement, calling this super-method first.
|
||||
destroyEvents: function() {
|
||||
// subclasses must implement
|
||||
this.triggerSegMouseout(); // trigger an eventMouseout if user's mouse is over an event
|
||||
},
|
||||
|
||||
|
||||
@@ -4485,17 +4491,21 @@ $.extend(Grid.prototype, {
|
||||
|
||||
// Updates internal state and triggers handlers for when an event element is moused over
|
||||
triggerSegMouseover: function(seg, ev) {
|
||||
if (!this.isMouseOverSeg) {
|
||||
this.isMouseOverSeg = true;
|
||||
if (!this.mousedOverSeg) {
|
||||
this.mousedOverSeg = seg;
|
||||
this.view.trigger('eventMouseover', seg.el[0], seg.event, ev);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// Updates internal state and triggers handlers for when an event element is moused out
|
||||
// Updates internal state and triggers handlers for when an event element is moused out.
|
||||
// Can be given no arguments, in which case it will mouseout the segment that was previously moused over.
|
||||
triggerSegMouseout: function(seg, ev) {
|
||||
if (this.isMouseOverSeg) {
|
||||
this.isMouseOverSeg = false;
|
||||
ev = ev || {}; // if given no args, make a mock mouse event
|
||||
|
||||
if (this.mousedOverSeg) {
|
||||
seg = seg || this.mousedOverSeg; // if given no args, use the currently moused-over segment
|
||||
this.mousedOverSeg = null;
|
||||
this.view.trigger('eventMouseout', seg.el[0], seg.event, ev);
|
||||
}
|
||||
},
|
||||
@@ -5099,9 +5109,12 @@ $.extend(DayGrid.prototype, {
|
||||
|
||||
// Removes all rendered event elements
|
||||
destroyEvents: function() {
|
||||
var rowStructs = this.rowStructs || [];
|
||||
var rowStructs;
|
||||
var rowStruct;
|
||||
|
||||
Grid.prototype.destroyEvents.call(this); // call the super-method
|
||||
|
||||
rowStructs = this.rowStructs || [];
|
||||
while ((rowStruct = rowStructs.pop())) {
|
||||
rowStruct.tbodyEl.remove();
|
||||
}
|
||||
@@ -6189,6 +6202,8 @@ $.extend(TimeGrid.prototype, {
|
||||
|
||||
// Removes all event segment elements from the view
|
||||
destroyEvents: function() {
|
||||
Grid.prototype.destroyEvents.call(this); // call the super-method
|
||||
|
||||
if (this.eventSkeletonEl) {
|
||||
this.eventSkeletonEl.remove();
|
||||
this.eventSkeletonEl = null;
|
||||
@@ -6305,7 +6320,14 @@ $.extend(TimeGrid.prototype, {
|
||||
}
|
||||
|
||||
return '<a class="' + classes.join(' ') + '"' +
|
||||
(skinCss ? ' style="' + skinCss + '"' : '') +
|
||||
(event.url ?
|
||||
' href="' + htmlEscape(event.url) + '"' :
|
||||
''
|
||||
) +
|
||||
(skinCss ?
|
||||
' style="' + skinCss + '"' :
|
||||
''
|
||||
) +
|
||||
'>' +
|
||||
'<div class="fc-content">' +
|
||||
(timeText ?
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* FullCalendar v2.1.0 Print Stylesheet
|
||||
* FullCalendar v2.1.1 Print Stylesheet
|
||||
* Docs & License: http://arshaw.com/fullcalendar/
|
||||
* (c) 2013 Adam Shaw
|
||||
*/
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* FullCalendar v2.1.0 Google Calendar Plugin
|
||||
* FullCalendar v2.1.1 Google Calendar Plugin
|
||||
* Docs & License: http://arshaw.com/fullcalendar/
|
||||
* (c) 2013 Adam Shaw
|
||||
*/
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
(function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)})(function(t,e){var i={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};(e.defineLocale||e.lang).call(e,"ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t){return 12>t?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return i[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),t.fullCalendar.datepickerLang("ar-sa","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),t.fullCalendar.lang("ar-sa",{defaultButtonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى"})});
|
||||
(function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)})(function(t,e){var n={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};(e.defineLocale||e.lang).call(e,"ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t){return 12>t?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[۰-۹]/g,function(t){return i[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return n[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),t.fullCalendar.datepickerLang("ar-sa","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),t.fullCalendar.lang("ar-sa",{defaultButtonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى"})});
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fullcalendar",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
|
||||
"description": "Full-sized drag & drop event calendar",
|
||||
"keywords": [ "calendar", "event", "full-sized" ],
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fullcalendar",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/arshaw/fullcalendar.git"
|
||||
|
||||
Reference in New Issue
Block a user