Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7406569
ve.ui.MWAlienAnnotationContextItem.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.MWAlienAnnotationContextItem.js
View Options
/*!
* VisualEditor MWAlienAnnotationContextItem class.
*
* @copyright See AUTHORS.txt
*/
/**
* Context item for a MWAlienAnnotation
*
* @class
* @extends ve.ui.MWAnnotationContextItem
*
* @constructor
* @param {ve.ui.LinearContext} context Context the item is in
* @param {ve.dm.Model} model Model the item is related to
* @param {Object} [config]
*/
ve
.
ui
.
MWAlienAnnotationContextItem
=
function
VeUiMWAlienAnnotationContextItem
()
{
// Parent constructor
ve
.
ui
.
MWAlienAnnotationContextItem
.
super
.
apply
(
this
,
arguments
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
MWAlienAnnotationContextItem
,
ve
.
ui
.
MWAnnotationContextItem
);
/* Static Properties */
ve
.
ui
.
MWAlienAnnotationContextItem
.
static
.
name
=
'mwAlienAnnotation'
;
ve
.
ui
.
MWAlienAnnotationContextItem
.
static
.
modelClasses
=
[
ve
.
dm
.
MWAlienAnnotationNode
];
/* Methods */
ve
.
ui
.
MWAlienAnnotationContextItem
.
prototype
.
getLabelMessage
=
function
()
{
const
type
=
this
.
model
.
getAttribute
(
'type'
);
if
(
type
.
indexOf
(
'/End'
,
type
.
length
-
4
)
!==
-
1
)
{
return
mw
.
message
(
'visualeditor-annotations-default-end'
).
text
();
}
else
{
return
mw
.
message
(
'visualeditor-annotations-default-start'
).
text
();
}
};
ve
.
ui
.
MWAlienAnnotationContextItem
.
prototype
.
getDescriptionMessage
=
function
()
{
const
type
=
this
.
model
.
getAttribute
(
'type'
);
if
(
type
.
indexOf
(
'/End'
,
type
.
length
-
4
)
!==
-
1
)
{
return
''
;
}
return
mw
.
message
(
'visualeditor-annotations-default-description'
).
parseDom
();
};
ve
.
ui
.
contextItemFactory
.
register
(
ve
.
ui
.
MWAlienAnnotationContextItem
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 20:29 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
44/0b/252737668a37e844a9dd8c06654a
Default Alt Text
ve.ui.MWAlienAnnotationContextItem.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment