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,50 +145,48 @@ $(function() {
month : 'short'
};
$.fn.calendar.settings.text = {
days : [
new Date(2018, 00, 00).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, 03).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, 06).toLocaleString(locale, options_weekday),
],
months : [
new Date(0000, 01, 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, 04, 00).toLocaleString(locale, options_months),
new Date(0000, 05, 00).toLocaleString(locale, options_months),
new Date(0000, 06, 00).toLocaleString(locale, options_months),
new Date(0000, 07, 00).toLocaleString(locale, options_months),
new Date(0000, 08, 00).toLocaleString(locale, options_months),
new Date(0000, 09, 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, 12, 00).toLocaleString(locale, options_months),
],
monthsShort : [
new Date(0000, 01, 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, 04, 00).toLocaleString(locale, options_months_short),
new Date(0000, 05, 00).toLocaleString(locale, options_months_short),
new Date(0000, 06, 00).toLocaleString(locale, options_months_short),
new Date(0000, 07, 00).toLocaleString(locale, options_months_short),
new Date(0000, 08, 00).toLocaleString(locale, options_months_short),
new Date(0000, 09, 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, 12, 00).toLocaleString(locale, options_months_short),
],
today : text.calendar_today,
now : text.calendar_now,
am : text.calendar_am,
pm : text.calendar_pm,
weekNo : text.calendar_week_no,
};
$.fn.calendar.settings.text.days = [
new Date(2018, 00, 00).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, 03).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, 06).toLocaleString(locale, options_weekday),
];
$.fn.calendar.settings.text.months = [
new Date(0000, 01, 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, 04, 00).toLocaleString(locale, options_months),
new Date(0000, 05, 00).toLocaleString(locale, options_months),
new Date(0000, 06, 00).toLocaleString(locale, options_months),
new Date(0000, 07, 00).toLocaleString(locale, options_months),
new Date(0000, 08, 00).toLocaleString(locale, options_months),
new Date(0000, 09, 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, 12, 00).toLocaleString(locale, options_months),
];
$.fn.calendar.settings.text.monthsShort = [
new Date(0000, 01, 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, 04, 00).toLocaleString(locale, options_months_short),
new Date(0000, 05, 00).toLocaleString(locale, options_months_short),
new Date(0000, 06, 00).toLocaleString(locale, options_months_short),
new Date(0000, 07, 00).toLocaleString(locale, options_months_short),
new Date(0000, 08, 00).toLocaleString(locale, options_months_short),
new Date(0000, 09, 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, 12, 00).toLocaleString(locale, options_months_short),
];
$.fn.calendar.settings.text.today = text.calendar_today;
$.fn.calendar.settings.text.now = text.calendar_now;
$.fn.calendar.settings.text.am = text.calendar_am;
$.fn.calendar.settings.text.pm = text.calendar_pm;
$.fn.calendar.settings.text.weekNo = text.calendar_week_no;
/** Dimmer */
$.fn.dimmer.settings.closable = false;