Rob Gökemeijer 8 rokov pred
rodič
commit
aed8d85efe
2 zmenil súbory, kde vykonal 9 pridanie a 5 odobranie
  1. 5 5
      api/pages/homepage.php
  2. 4 0
      css/organizr.css

+ 5 - 5
api/pages/homepage.php

@@ -5,7 +5,7 @@ $pageHomepage = '
 !function($) {
     "use strict";
     var CalendarApp = function() {
-        this.$body = $("body")
+        this.$body = $("body");
         this.$calendar = $("#calendar"),
         this.$event = ("#calendar-events div.calendar-events"),
         this.$categoryForm = $("#add-new-event form"),
@@ -26,12 +26,12 @@ $pageHomepage = '
 
         var $this = this;
         $this.$calendarObj = $this.$calendar.fullCalendar({
-            defaultView: (activeInfo.mobile) ? "list" : "'.$GLOBALS['calendarDefault'].'",
+            defaultView: (activeInfo.mobile) ? "list" : "' . $GLOBALS['calendarDefault'] . '",
             firstDay: "'.$GLOBALS['calendarFirstDay'].'",
             timeFormat: "'.$GLOBALS['calendarTimeFormat'].'",
             handleWindowResize: true,
             header: {
-               left: "prev,next",
+               left: "prev,next,today",
                center: "title",
                right: (activeInfo.mobile) ? "" : "month,basicWeek,basicDay,list",
             },
@@ -39,11 +39,11 @@ $pageHomepage = '
                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'].' },
-               today: { buttonText: window.lang.translate("Today") },
-               list: { buttonText: window.lang.translate("List"), duration: {months: 1} },
+               list: { buttonText: window.lang.translate("List"), duration: {days: 15} },
             },
             timezone: "local",
             editable: false,
+            navLinks: true, // can click day/week names to navigate views
             droppable: false, // this allows things to be dropped onto the calendar !!!
             selectable: false,
             height: "auto",

+ 4 - 0
css/organizr.css

@@ -799,4 +799,8 @@ input.has-success {
     background: transparent;
     border-bottom: 1px solid;
     border-color: rgba(120,130,140,.13);
+}
+
+.fc-state-disabled {
+    display: none;
 }