mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +03:00
Enhancements in the backend_settings.js services.
This commit is contained in:
parent
6540335e0a
commit
b88fd19912
1 changed files with 10 additions and 7 deletions
|
@ -12,6 +12,8 @@
|
||||||
window.BackendServices = window.BackendServices || {};
|
window.BackendServices = window.BackendServices || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Backend Services
|
||||||
|
*
|
||||||
* This namespace handles the js functionality of the backend services page.
|
* This namespace handles the js functionality of the backend services page.
|
||||||
*
|
*
|
||||||
* @module BackendServices
|
* @module BackendServices
|
||||||
|
@ -23,15 +25,14 @@ window.BackendServices = window.BackendServices || {};
|
||||||
/**
|
/**
|
||||||
* Contains the basic record methods for the page.
|
* Contains the basic record methods for the page.
|
||||||
*
|
*
|
||||||
* @type ServicesHelper|CategoriesHelper
|
* @type {ServicesHelper|CategoriesHelper}
|
||||||
*/
|
*/
|
||||||
var helper;
|
var helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default initialize method of the page.
|
* Default initialize method of the page.
|
||||||
*
|
*
|
||||||
* @param {bool} bindEventHandlers (OPTIONAL) Determines whether to bind the
|
* @param {Boolean} bindEventHandlers Optional (true), determines whether to bind the default event handlers.
|
||||||
* default event handlers (default: true).
|
|
||||||
*/
|
*/
|
||||||
exports.initialize = function(bindEventHandlers) {
|
exports.initialize = function(bindEventHandlers) {
|
||||||
bindEventHandlers = bindEventHandlers || true;
|
bindEventHandlers = bindEventHandlers || true;
|
||||||
|
@ -62,8 +63,9 @@ window.BackendServices = window.BackendServices || {};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binds the default event handlers of the backend services page. Do not use this method
|
* Binds the default event handlers of the backend services page.
|
||||||
* if you include the "BackendServices" namespace on another page.
|
*
|
||||||
|
* Do not use this method if you include the "BackendServices" namespace on another page.
|
||||||
*/
|
*/
|
||||||
function _bindEventHandlers() {
|
function _bindEventHandlers() {
|
||||||
/**
|
/**
|
||||||
|
@ -98,8 +100,9 @@ window.BackendServices = window.BackendServices || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the service category listbox. Use this method every time a change is made
|
* Update the service category listbox.
|
||||||
* to the service categories db table.
|
*
|
||||||
|
* Use this method every time a change is made to the service categories db table.
|
||||||
*/
|
*/
|
||||||
exports.updateAvailableCategories = function() {
|
exports.updateAvailableCategories = function() {
|
||||||
var postUrl = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_service_categories',
|
var postUrl = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_service_categories',
|
||||||
|
|
Loading…
Reference in a new issue