Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7497109
ve.ui.WindowManager.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.ui.WindowManager.js
View Options
/*!
* VisualEditor UserInterface WindowManager class.
*
* @copyright See AUTHORS.txt
*/
/**
* Window manager.
*
* @class
* @extends OO.ui.WindowManager
*
* @constructor
* @param {Object} [config] Configuration options
* @param {ve.ui.Overlay} [config.overlay] Overlay to use for menus
*/
ve
.
ui
.
WindowManager
=
function
VeUiWindowManager
(
config
=
{}
)
{
// Parent constructor
ve
.
ui
.
WindowManager
.
super
.
call
(
this
,
config
);
// Properties
this
.
overlay
=
config
.
overlay
||
null
;
// The following classes are used here:
// * ve-ui-dir-block-ltr
// * ve-ui-dir-block-rtl
this
.
$element
.
addClass
(
've-ui-dir-block-'
+
this
.
getDir
()
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
WindowManager
,
OO
.
ui
.
WindowManager
);
/* Methods */
/**
* Get directionality.
*
* @return {string} UI directionality
*/
ve
.
ui
.
WindowManager
.
prototype
.
getDir
=
function
()
{
return
$
(
document
.
body
).
css
(
'direction'
);
};
/**
* Get overlay for menus.
*
* @return {ve.ui.Overlay|null} Menu overlay, null if none was configured
*/
ve
.
ui
.
WindowManager
.
prototype
.
getOverlay
=
function
()
{
return
this
.
overlay
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 22:43 (6 d, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2d/d3/67f1b01aa9d5e9d465a35ee11c6b
Default Alt Text
ve.ui.WindowManager.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment