mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Rename MWLinkInspector → MWLinkAnnotationInspector to match file name"
This commit is contained in:
commit
9b2383589f
|
@ -15,25 +15,25 @@
|
||||||
* @param {OO.ui.WindowManager} manager Manager of window
|
* @param {OO.ui.WindowManager} manager Manager of window
|
||||||
* @param {Object} [config] Configuration options
|
* @param {Object} [config] Configuration options
|
||||||
*/
|
*/
|
||||||
ve.ui.MWLinkInspector = function VeUiMWLinkInspector( manager, config ) {
|
ve.ui.MWLinkAnnotationInspector = function VeUiMWLinkAnnotationInspector( manager, config ) {
|
||||||
// Parent constructor
|
// Parent constructor
|
||||||
ve.ui.LinkInspector.call( this, manager, config );
|
ve.ui.LinkInspector.call( this, manager, config );
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Inheritance */
|
/* Inheritance */
|
||||||
|
|
||||||
OO.inheritClass( ve.ui.MWLinkInspector, ve.ui.LinkInspector );
|
OO.inheritClass( ve.ui.MWLinkAnnotationInspector, ve.ui.LinkInspector );
|
||||||
|
|
||||||
/* Static properties */
|
/* Static properties */
|
||||||
|
|
||||||
ve.ui.MWLinkInspector.static.name = 'link';
|
ve.ui.MWLinkAnnotationInspector.static.name = 'link';
|
||||||
|
|
||||||
ve.ui.MWLinkInspector.static.modelClasses = [
|
ve.ui.MWLinkAnnotationInspector.static.modelClasses = [
|
||||||
ve.dm.MWExternalLinkAnnotation,
|
ve.dm.MWExternalLinkAnnotation,
|
||||||
ve.dm.MWInternalLinkAnnotation
|
ve.dm.MWInternalLinkAnnotation
|
||||||
];
|
];
|
||||||
|
|
||||||
ve.ui.MWLinkInspector.static.linkTargetInputWidget = ve.ui.MWLinkTargetInputWidget;
|
ve.ui.MWLinkAnnotationInspector.static.linkTargetInputWidget = ve.ui.MWLinkTargetInputWidget;
|
||||||
|
|
||||||
/* Methods */
|
/* Methods */
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ ve.ui.MWLinkInspector.static.linkTargetInputWidget = ve.ui.MWLinkTargetInputWidg
|
||||||
* @param {ve.dm.SurfaceFragment} fragment Current selection
|
* @param {ve.dm.SurfaceFragment} fragment Current selection
|
||||||
* @returns {ve.dm.MWInternalLinkAnnotation|ve.dm.MWExternalLinkAnnotation|null}
|
* @returns {ve.dm.MWInternalLinkAnnotation|ve.dm.MWExternalLinkAnnotation|null}
|
||||||
*/
|
*/
|
||||||
ve.ui.MWLinkInspector.prototype.getAnnotationFromFragment = function ( fragment ) {
|
ve.ui.MWLinkAnnotationInspector.prototype.getAnnotationFromFragment = function ( fragment ) {
|
||||||
var target = fragment.getText(),
|
var target = fragment.getText(),
|
||||||
title = mw.Title.newFromText( target );
|
title = mw.Title.newFromText( target );
|
||||||
|
|
||||||
|
@ -89,4 +89,4 @@ ve.ui.MWLinkInspector.prototype.getAnnotationFromFragment = function ( fragment
|
||||||
|
|
||||||
/* Registration */
|
/* Registration */
|
||||||
|
|
||||||
ve.ui.windowFactory.register( ve.ui.MWLinkInspector );
|
ve.ui.windowFactory.register( ve.ui.MWLinkAnnotationInspector );
|
||||||
|
|
Loading…
Reference in a new issue