ソースを参照

mobile day view by default

causefx 8 年 前
コミット
db11568d3b
1 ファイル変更2 行追加2 行削除
  1. 2 2
      api/pages/homepage.php

+ 2 - 2
api/pages/homepage.php

@@ -25,14 +25,14 @@ $pageHomepage = '
         var today = new Date($.now());
         var $this = this;
         $this.$calendarObj = $this.$calendar.fullCalendar({
-            defaultView: "'.$GLOBALS['calendarDefault'].'",
+            defaultView: (activeInfo.mobile) ? "basicDay" : "'.$GLOBALS['calendarDefault'].'",
             firstDay: "'.$GLOBALS['calendarFirstDay'].'",
             timeFormat: "'.$GLOBALS['calendarTimeFormat'].'",
             handleWindowResize: true,
             header: {
                left: "prev,next",
                center: "title",
-               right: "month,basicWeek,basicDay"
+               right: (activeInfo.mobile) ? "" : "month,basicWeek,basicDay",
             },
             views: {
                basicDay: { buttonText: window.lang.translate("Day"), eventLimit: '.$GLOBALS['calendarLimit'].' },