Selaa lähdekoodia

fix calendar double today button
fix calendar scroll

causefx 8 vuotta sitten
vanhempi
commit
20fb745fc5

+ 4 - 4
api/pages/homepage.php

@@ -33,12 +33,12 @@ if (file_exists('config' . DIRECTORY_SEPARATOR . 'config.php')) {
             header: {
                left: "prev,next,today",
                center: "title",
-               right: (activeInfo.mobile) ? "" : "today,month,basicWeek,basicDay,list",
+               right: (activeInfo.mobile) ? "" : "month,basicWeek,basicDay,list",
             },
             views: {
-               basicDay: { buttonText: window.lang.translate("Day"), eventLimit: '.$GLOBALS['calendarLimit'].' },
-               basicWeek: { buttonText: window.lang.translate("Week"), eventLimit: '.$GLOBALS['calendarLimit'].' },
-               month: { buttonText: window.lang.translate("Month"), eventLimit: '.$GLOBALS['calendarLimit'].' },
+               basicDay: { buttonText: window.lang.translate("Day"), eventLimit: ' . $GLOBALS['calendarLimit'] . ' },
+               basicWeek: { buttonText: window.lang.translate("Week"), eventLimit: ' . $GLOBALS['calendarLimit'] . ' },
+               month: { buttonText: window.lang.translate("Month"), eventLimit: ' . $GLOBALS['calendarLimit'] . ' },
                list: { buttonText: window.lang.translate("List"), duration: {days: 15} },
             },
             timezone: "local",

+ 2 - 0
plugins/bower_components/calendar/dist/fullcalendar.js

@@ -11214,12 +11214,14 @@ function Calendar_constructor(element, overrides) {
 	function prev() {
 		date = currentView.computePrevDate(date);
 		renderView();
+        new SimpleBar($('.fc-scroller')[0]);
 	}
 
 
 	function next() {
 		date = currentView.computeNextDate(date);
 		renderView();
+        new SimpleBar($('.fc-scroller')[0]);
 	}