Namespace: GeneralFunctions

GeneralFunctions

This file contains the General Functions javascript namespace. It contains functions that apply both on the front and back end of the application.
Source:

Methods

<static> centerElementOnPage(elementHandle)

This method centers a DOM element vertically and horizontally on the page.
Parameters:
Name Type Description
elementHandle object The object that is going to be centered.
Source:

<static> displayMessageBox(title, message, messageButtons)

This functions displays a message box in the admin array. It is usefull when user decisions or verifications are needed.
Parameters:
Name Type Description
title string The title of the message box.
message string The message of the dialog.
messageButtons array Contains the dialog buttons along with their functions.
Source:

<static> getUrlParameter(url, name) → {String}

This function retrieves a parameter from a "GET" formed url.
Parameters:
Name Type Description
url string The selected url.
name string The parameter name.
Source:
Returns:
Returns the parameter value.
Type
String

<static> ISODateString(dt) → {String}

This function creates a RFC 3339 date string. This string is needed by the Google Calendar API in order to pass dates as parameters.
Parameters:
Name Type Description
dt date The given date that will be transformed
Source:
Returns:
Returns the transformed string.
Type
String