Constructor
new Config()
#
- Source:
Properties
POSITION_REGEXPstatic
#
RegExp representing the media position as in "File:foo.jpg/3"
- Source:
RegExp representing the media position as in "File:foo.jpg/3"
ROUTEstatic
#
The media route prefix
- Source:
The media route prefix
ROUTE_REGEXPstatic
#
RegExp representing the media route
- Source:
RegExp representing the media route
Methods
disableStatusInfo()static
#
Called when status info is displayed. Future shouldShowStatusInfo() calls will return false.
- Source:
Called when status info is displayed.
isMediaViewerEnabledOnClick() → {boolean}static
#
Returns true if MediaViewer should handle thumbnail clicks.
Returns:
- Type
- boolean
- Source:
Returns true if MediaViewer should handle thumbnail clicks.
language() → {string}static
#
Returns UI language
Returns:
Language code
- Type
- string
- Source:
Returns UI language
setMediaViewerEnabledOnClick(enabled) → {jQuery.Promise}static
#
(Semi-)permanently stores the setting whether MediaViewer should handle thumbnail clicks.
- for logged-in users, we use preferences
- for anons, we use localStorage
- for anons with old browsers, we don't do anything
Parameters:
| Name | Type | Description |
|---|---|---|
enabled |
boolean |
Returns:
a deferred which resolves/rejects on success/failure respectively
- Type
- jQuery.Promise
- Source:
(Semi-)permanently stores the setting whether MediaViewer should handle thumbnail clicks.
shouldShowStatusInfo() → {boolean}static
#
True if info about enable/disable status should be displayed (mingle #719).
Returns:
- Type
- boolean
- Source:
True if info about enable/disable status should be displayed (mingle #719).