MaketRandevu/src/assets/js/backend_calendar.js

47 lines
1.5 KiB
JavaScript
Raw Normal View History

2015-07-20 22:41:24 +03:00
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
2015-10-06 00:30:56 +03:00
*
2015-07-20 22:41:24 +03:00
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
2016-01-02 15:47:04 +02:00
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
2015-10-06 00:30:56 +03:00
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
2015-07-20 22:41:24 +03:00
* @link http://easyappointments.org
* @since v1.0.0
* ---------------------------------------------------------------------------- */
/**
* Backend Calendar
*
* This module contains functions that are used by the backend calendar page.
2015-10-06 00:30:56 +03:00
*
* @module BackendCalendar
*/
window.BackendCalendar = window.BackendCalendar || {};
2015-10-06 00:30:56 +03:00
(function(exports) {
2015-10-06 00:30:56 +03:00
'use strict';
2015-10-06 00:30:56 +03:00
/**
* Initialize Module
*
* This function makes the necessary initialization for the default backend calendar page. If this module
* is used in another page then this function might not be needed.
*
* @param {String} view Optional (default), the calendar view to be loaded.
*/
exports.initialize = function(view) {
// Load and initialize the calendar view.
if (view === 'table') {
BackendCalendarTableView.initialize();
} else {
BackendCalendarDefaultView.initialize();
}
BackendCalendarGoogleSync.initialize();
BackendCalendarAppointmentsModal.initialize();
BackendCalendarUnavailabilitiesModal.initialize();
};
})(window.BackendCalendar);