2018-09-17 14:24:27 +00:00
|
|
|
/*!
|
|
|
|
* 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
|
2019-04-16 15:17:29 +00:00
|
|
|
* @param {string} rebaserUrl Rebaser server URL
|
2018-09-17 14:24:27 +00:00
|
|
|
* @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' );
|
|
|
|
|
2019-01-08 17:00:09 +00:00
|
|
|
$( document.body ).removeClass( 'ns-special' );
|
2018-09-17 14:24:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* 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 );
|