OTRS API Reference JavaScript

Namespace: Core.Agent.Admin.CustomPage

Core.Agent.Admin. CustomPage

This namespace contains the special module functions for the custom page module.
Author:
  • OTRS AG

Methods

(static) AddLanguage(LanguageID, Language) → {Bool}

This function add a new custom page content language.
Parameters:
Name Type Description
LanguageID string short name of the language like es_MX.
Language string full name of the language like Spanish (Mexico).
Returns:
Returns false to prevent event bubbling.
Type
Bool

(static) CleanSlugText(Slug) → {string}

This function cleans a slug text from the title of a page.
Parameters:
Name Type Description
Slug string The title of a page.
Returns:
returns the slug text.
Type
string

(static) Init()

This function initialize correctly all other function according to the local language.

(static) LanguageSelectionRebuild() → {Boolean}

This function rebuilds language selection, only show available languages.
Returns:
Returns true.
Type
Boolean

(static) RemoveLanguage(Object)

This function removes a custom page content language.
Parameters:
Name Type Description
Object jQueryObject JQuery object used to remove the language block