From 547e681a221b44dc5f8767027b7f22d3f1bb5885 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 7 Jan 2022 08:57:20 +0100 Subject: [PATCH] Remove unused users-page scripts --- assets/js/backend_users.js | 236 --------- assets/js/backend_users_admins.js | 488 ------------------ assets/js/backend_users_providers.js | 674 ------------------------- assets/js/backend_users_secretaries.js | 512 ------------------- 4 files changed, 1910 deletions(-) delete mode 100644 assets/js/backend_users.js delete mode 100644 assets/js/backend_users_admins.js delete mode 100755 assets/js/backend_users_providers.js delete mode 100644 assets/js/backend_users_secretaries.js diff --git a/assets/js/backend_users.js b/assets/js/backend_users.js deleted file mode 100644 index 798ec8b6..00000000 --- a/assets/js/backend_users.js +++ /dev/null @@ -1,236 +0,0 @@ -/* ---------------------------------------------------------------------------- - * 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.BackendUsers = window.BackendUsers || {}; - -/** - * 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 BackendUsers - */ -(function (exports) { - 'use strict'; - - /** - * Minimum Password Length - * - * @type {Number} - */ - exports.MIN_PASSWORD_LENGTH = 7; - - /** - * Contains the current tab record methods for the page. - * - * @type {AdminsHelper|ProvidersHelper|SecretariesHelper} - */ - var helper = {}; - - /** - * Use this class instance for performing actions on the working plan. - * - * @type {WorkingPlan} - */ - exports.wp = {}; - - /** - * Initialize the backend users page. - * - * @param {Boolean} defaultEventHandlers (OPTIONAL) Whether to bind the default event handlers. - */ - exports.initialize = function (defaultEventHandlers) { - defaultEventHandlers = defaultEventHandlers || true; - - exports.wp = new WorkingPlan(); - exports.wp.bindEventHandlers(); - - // Instantiate default helper object (admin). - helper = new ProvidersHelper(); - helper.resetForm(); - helper.filter(''); - helper.bindEventHandlers(); - - // Fill the services and providers list boxes. - GlobalVariables.services.forEach(function (service) { - $('
', { - 'class': 'checkbox', - 'html': [ - $('
', { - 'class': 'checkbox form-check', - 'html': [ - $('', { - 'class': 'form-check-input', - 'type': 'checkbox', - 'data-id': service.id, - 'prop': { - 'disabled': true - } - }), - $('