mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-17 19:31:51 +00:00
b7c7d06968
To align with the linked patch in MediaWiki core. Taking advantage of the opportunity to use core's messages for these, and remove some dead wood old messages that were never used like "restore" items in mobile. Bug: T139033 Depends-On: Ie81b5edd275963a965cd44d0fd325cae9ee2f1a6 Change-Id: Ie00e94cc77cb750a7e8d1104366bb3dad65af8a4
35 lines
879 B
JavaScript
35 lines
879 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MWMobileSaveDialog class.
|
|
*
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Dialog for saving MediaWiki pages in mobile.
|
|
*
|
|
* TODO: Currently this does no overriding so could be removed, but we may want
|
|
* to customise the mobile save dialog in the near future.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.MWSaveDialog
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Config options
|
|
*/
|
|
ve.ui.MWMobileSaveDialog = function VeUiMwMobileSaveDialog() {
|
|
// Parent constructor
|
|
ve.ui.MWMobileSaveDialog.super.apply( this, arguments );
|
|
|
|
// Initialization
|
|
this.$element.addClass( 've-ui-mwMobileSaveDialog' );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWMobileSaveDialog, ve.ui.MWSaveDialog );
|
|
|
|
/* Registration */
|
|
|
|
ve.ui.windowFactory.register( ve.ui.MWMobileSaveDialog );
|