/* ---------------------------------------------------------------------------- * Easy!Appointments - Open Source Web Scheduler * * @package EasyAppointments * @author A.Tselegidis * @copyright Copyright (c) Alex Tselegidis * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 * @link https://easyappointments.org * @since v1.0.0 * ---------------------------------------------------------------------------- */ window.BackendSecretaries = window.BackendSecretaries || {}; /** * Backend Users * * This module handles the js functionality of the users backend page. It uses three other * classes (defined below) in order to handle the admin, provider and secretary record types. * * @module BackendSecretaries */ (function (exports) { 'use strict'; /** * Minimum Password Length * * @type {Number} */ exports.MIN_PASSWORD_LENGTH = 7; /** * Contains the current tab record methods for the page. * * @type {SecretariesHelper} */ var helper = {}; /** * Initialize the backend users page. * * @param {Boolean} defaultEventHandlers (OPTIONAL) Whether to bind the default event handlers. */ exports.initialize = function (defaultEventHandlers) { defaultEventHandlers = defaultEventHandlers || true; // Instantiate default helper object. helper = new SecretariesHelper(); helper.resetForm(); helper.filter(''); helper.bindEventHandlers(); GlobalVariables.providers.forEach(function (provider) { $('
', { 'class': 'checkbox', 'html': [ $('
', { 'class': 'checkbox form-check', 'html': [ $('', { 'class': 'form-check-input', 'type': 'checkbox', 'data-id': provider.id }), $('