Ver código fonte

Added refresh to calendar

causefx 7 anos atrás
pai
commit
9902dfeca6
1 arquivos alterados com 8 adições e 1 exclusões
  1. 8 1
      api/pages/homepage.php

+ 8 - 1
api/pages/homepage.php

@@ -31,6 +31,13 @@ if (file_exists('config' . DIRECTORY_SEPARATOR . 'config.php')) {
 			      text: \'Filter\',
 			      click: function() {
 			        $(\'#calendar-filter-modal\').modal(\'show\');
+			      },
+			      //icon: \'x\'
+			    },
+			    refreshCalendar: {
+			      text: \'Refresh\',
+			      click: function() {
+			        homepageCalendar();
 			      }
 			    }
 			  },
@@ -41,7 +48,7 @@ if (file_exists('config' . DIRECTORY_SEPARATOR . 'config.php')) {
             header: {
                left: "prev,next,today",
                center: "title",
-               right: (activeInfo.mobile) ? "filterCalendar" : "filterCalendar,month,basicWeek,basicDay,list",
+               right: (activeInfo.mobile) ? "refreshCalendar,filterCalendar" : "refreshCalendar,filterCalendar,month,basicWeek,basicDay,list",
             },
             views: {
                basicDay: { buttonText: window.lang.translate("Day"), eventLimit: ' . $GLOBALS['calendarLimit'] . ' },