mediawiki-extensions-Visual.../modules/ve-mw/ui/dialogs/ve.ui.MWMobileSaveDialog.js
James D. Forrester b7c7d06968 Show a different label for buttons on create vs. modify
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
2016-08-24 16:01:11 -07:00

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 );