Fix calendar not working

This commit is contained in:
grandeljay 2022-09-15 15:01:39 +02:00
parent c046db4b52
commit 9d594541f7

View file

@ -145,8 +145,7 @@ $(function() {
month : 'short' month : 'short'
}; };
$.fn.calendar.settings.text = { $.fn.calendar.settings.text.days = [
days : [
new Date(2018, 00, 00).toLocaleString(locale, options_weekday), new Date(2018, 00, 00).toLocaleString(locale, options_weekday),
new Date(2018, 00, 01).toLocaleString(locale, options_weekday), new Date(2018, 00, 01).toLocaleString(locale, options_weekday),
new Date(2018, 00, 02).toLocaleString(locale, options_weekday), new Date(2018, 00, 02).toLocaleString(locale, options_weekday),
@ -154,8 +153,8 @@ $(function() {
new Date(2018, 00, 04).toLocaleString(locale, options_weekday), new Date(2018, 00, 04).toLocaleString(locale, options_weekday),
new Date(2018, 00, 05).toLocaleString(locale, options_weekday), new Date(2018, 00, 05).toLocaleString(locale, options_weekday),
new Date(2018, 00, 06).toLocaleString(locale, options_weekday), new Date(2018, 00, 06).toLocaleString(locale, options_weekday),
], ];
months : [ $.fn.calendar.settings.text.months = [
new Date(0000, 01, 00).toLocaleString(locale, options_months), new Date(0000, 01, 00).toLocaleString(locale, options_months),
new Date(0000, 02, 00).toLocaleString(locale, options_months), new Date(0000, 02, 00).toLocaleString(locale, options_months),
new Date(0000, 03, 00).toLocaleString(locale, options_months), new Date(0000, 03, 00).toLocaleString(locale, options_months),
@ -168,8 +167,8 @@ $(function() {
new Date(0000, 10, 00).toLocaleString(locale, options_months), new Date(0000, 10, 00).toLocaleString(locale, options_months),
new Date(0000, 11, 00).toLocaleString(locale, options_months), new Date(0000, 11, 00).toLocaleString(locale, options_months),
new Date(0000, 12, 00).toLocaleString(locale, options_months), new Date(0000, 12, 00).toLocaleString(locale, options_months),
], ];
monthsShort : [ $.fn.calendar.settings.text.monthsShort = [
new Date(0000, 01, 00).toLocaleString(locale, options_months_short), new Date(0000, 01, 00).toLocaleString(locale, options_months_short),
new Date(0000, 02, 00).toLocaleString(locale, options_months_short), new Date(0000, 02, 00).toLocaleString(locale, options_months_short),
new Date(0000, 03, 00).toLocaleString(locale, options_months_short), new Date(0000, 03, 00).toLocaleString(locale, options_months_short),
@ -182,13 +181,12 @@ $(function() {
new Date(0000, 10, 00).toLocaleString(locale, options_months_short), new Date(0000, 10, 00).toLocaleString(locale, options_months_short),
new Date(0000, 11, 00).toLocaleString(locale, options_months_short), new Date(0000, 11, 00).toLocaleString(locale, options_months_short),
new Date(0000, 12, 00).toLocaleString(locale, options_months_short), new Date(0000, 12, 00).toLocaleString(locale, options_months_short),
], ];
today : text.calendar_today, $.fn.calendar.settings.text.today = text.calendar_today;
now : text.calendar_now, $.fn.calendar.settings.text.now = text.calendar_now;
am : text.calendar_am, $.fn.calendar.settings.text.am = text.calendar_am;
pm : text.calendar_pm, $.fn.calendar.settings.text.pm = text.calendar_pm;
weekNo : text.calendar_week_no, $.fn.calendar.settings.text.weekNo = text.calendar_week_no;
};
/** Dimmer */ /** Dimmer */
$.fn.dimmer.settings.closable = false; $.fn.dimmer.settings.closable = false;