OTRS API Reference JavaScript

Namespace: Core.Agent

Core. Agent

This namespace contains the config options and functions.
Author:
  • OTRS AG

Namespaces

Admin
AppointmentCalendar
CustomerInformationCenter
CustomerInformationCenterSearch
CustomerSearch
CustomerSearchAutoComplete
CustomerSearchSMS
CustomerUserAddressBook
CustomerUserInformationCenter
CustomerUserInformationCenterSearch
Daemon
Dashboard
DocumentSearch
Header
LinkObject
Login
NotificationView
Overview
Preferences
ProcessInformation
Responsive
Search
SharedSecretGenerator
SortedTree
Statistics
StatisticsReports
Stats
TableFilters
TicketAction
TicketActionCommon
TicketBounce
TicketBulk
TicketCompose
TicketEmail
TicketEmailOutbound
TicketEmailResend
TicketForward
TicketHistory
TicketMerge
TicketMove
TicketPhone
TicketPhoneCommon
TicketProcess
TicketSMS
TicketSplit
TicketZoom

Members

(static) IECompatibilityMode :Boolean

IE Compatibility Mode is active.
Type:
  • Boolean

(static) SupportedBrowser :Boolean

Indicates a supported browser.
Type:
  • Boolean

Methods

(static) CheckSessionExpiredAndReload()

This function reload the page if the session is over and a login form is showed in some part of the current screen.

(static) Init()

This function initializes the application and executes the needed functions.

(static) InitPagination()

This function initialize Pagination

(static) PreferencesUpdate(Key, Value, SuccessCallback) → {Boolean}

This function sets session and preferences setting at runtime.
Parameters:
Name Type Description
Key jQueryObject The name of the setting.
Value jQueryObject The value of the setting.
SuccessCallback function Callback function to be executed on AJAX success (optional).
Returns:
returns true.
Type
Boolean

(static) ReorderNavigationItems(NavbarCustomOrderItems)

This function re-orders the navigation items based on the users preferences.
Parameters:
Name Type Description
NavbarCustomOrderItems Array

(static) ResizeNavigationBar(RealResizeEvent)

This function checks if the navigation bar needs to be resized and equipped with slider navigation buttons. This can only happen if there are too many navigation icons.
Parameters:
Name Type Description
RealResizeEvent Boolean

(static) ShowPackageRequiredDialog(Package) → {Boolean}

This function shows package required dialog.
Parameters:
Name Type Description
Package Sting Name of the required package.
Returns:
false, if package is already installed.
Type
Boolean