Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6000901
ve.ui.MWCitationAction.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.MWCitationAction.js
View Options
'use strict'
;
/*!
* VisualEditor UserInterface MWCitationAction class.
*
* @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
* @license MIT
*/
/**
* Opens the {@see ve.ui.MWCitationDialog} (via it's name "cite") in VisualEditor.
*
* @constructor
* @extends ve.ui.Action
* @param {ve.ui.Surface} surface Surface to act on
*/
ve
.
ui
.
MWCitationAction
=
function
VeUiMWCitationAction
()
{
// Parent constructor
ve
.
ui
.
MWCitationAction
.
super
.
apply
(
this
,
arguments
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
MWCitationAction
,
ve
.
ui
.
Action
);
/* Static Properties */
ve
.
ui
.
MWCitationAction
.
static
.
name
=
'mwcite'
;
ve
.
ui
.
MWCitationAction
.
static
.
methods
=
[
'open'
];
/* Methods */
/**
* When opening a citation, send the dialog a property of the surface
* dialog name.
*
* @param {Object} windowData Data to send to the dialog
* @return {boolean} Action was executed
*/
ve
.
ui
.
MWCitationAction
.
prototype
.
open
=
function
(
windowData
)
{
windowData
=
Object
.
assign
(
{
inDialog
:
this
.
surface
.
getInDialog
()
},
windowData
);
this
.
surface
.
execute
(
'window'
,
'open'
,
'cite'
,
windowData
);
return
true
;
};
module
.
exports
=
ve
.
ui
.
MWCitationAction
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 4 2026, 06:11 (5 w, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/32/3e4a269c76b07155077eb812895e
Default Alt Text
ve.ui.MWCitationAction.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment