mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-17 19:31:51 +00:00
74f6c4899c
Change-Id: I63a0ebf0b31a0d5d4e680a4e2a5a0be4850be165
58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
/*!
|
|
* VisualEditor MediaWiki Initialization MobileCollabTarget class.
|
|
*
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* MediaWiki mobile article target.
|
|
*
|
|
* @class
|
|
* @extends ve.init.mw.Target
|
|
*
|
|
* @constructor
|
|
* @param {mw.Title} title Page sub-title
|
|
* @param {rebaserUrl} string Rebaser server URL
|
|
* @param {Object} [config] Configuration options
|
|
* @cfg {mw.Title} [importTitle] Title to import
|
|
*/
|
|
ve.init.mw.MobileCollabTarget = function VeInitMwMobileCollabTarget( title, rebaserUrl, config ) {
|
|
// Parent constructor
|
|
ve.init.mw.MobileCollabTarget.super.call( this, title, rebaserUrl, config );
|
|
|
|
// Initialization
|
|
this.$element.addClass( 've-init-mw-mobileArticleTarget ve-init-mw-mobileCollabTarget' );
|
|
|
|
$( document.body ).removeClass( 'ns-special' );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.init.mw.MobileCollabTarget, ve.init.mw.CollabTarget );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.init.mw.MobileCollabTarget.static.actionGroups = [
|
|
{
|
|
name: 'authorList',
|
|
include: [ 'authorList' ]
|
|
}
|
|
];
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
ve.init.mw.MobileCollabTarget.prototype.setSurface = function ( surface ) {
|
|
surface.$element.addClass( 'content' );
|
|
|
|
// Parent method
|
|
ve.init.mw.MobileCollabTarget.super.prototype.setSurface.apply( this, arguments );
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
ve.init.mw.targetFactory.register( ve.init.mw.MobileCollabTarget );
|