Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/239836
Change subject: Remove unused mw.UploadWizardDeleteDialog class
......................................................................
Remove unused mw.UploadWizardDeleteDialog class
Unused since r101593 (0b5ae9859de45434e657eea3e696c82cea38a370).
Also remove now-unused message 'mwe-upwiz-cancel'.
'mwe-upwiz-remove' is still in use elsewhere.
(Split off from Id3f2642b50d380fba77d6362564930ec08402b76.)
Change-Id: Ifd2fdd4273f70cc2a8c8a49cd913a1796ed8e1e9
---
M UploadWizardHooks.php
M i18n/en.json
M resources/mw.UploadWizard.js
3 files changed, 0 insertions(+), 44 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/36/239836/1
diff --git a/UploadWizardHooks.php b/UploadWizardHooks.php
index 6f818e6..bf039e4 100644
--- a/UploadWizardHooks.php
+++ b/UploadWizardHooks.php
@@ -299,7 +299,6 @@
'mwe-upwiz-upload-error-duplicate-archive',
'mwe-upwiz-upload-error-stashed-anyway',
'mwe-upwiz-ok',
- 'mwe-upwiz-cancel',
'mwe-upwiz-change',
'mwe-upwiz-fileexists-replace',
'mwe-upwiz-fileexists',
diff --git a/i18n/en.json b/i18n/en.json
index 9ca8481..cf22fb3 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -168,7 +168,6 @@
"mwe-upwiz-upload-error-unknown-filename-error": "We could not read or
understand the filename \"$1\" for unknown reasons.",
"mwe-upwiz-deleted-duplicate-unknown-filename": "Unknown filename",
"mwe-upwiz-ok": "OK",
- "mwe-upwiz-cancel": "Cancel",
"mwe-upwiz-fileexists-replace": "A file with the title \"$1\" exists
already. Please change your title to something unique.",
"mwe-upwiz-fileexists": "A file with this name exists already.\nPlease
check $1 if you are not sure if you want to replace it.",
"mwe-upwiz-fileexists-replace-on-page": "A file with this name exists
already. If you want to replace it, go to the page for [$2 $1] and replace it
there.",
diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index 9d84f68..1c225df 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -475,48 +475,6 @@
return deeds;
};
- /**
- * Makes a modal dialog to confirm deletion of one or more uploads.
Will have "Remove" and "Cancel" buttons
- * @param {Array} array of UploadWizardUpload objects
- * @param {String} message for dialog title
- * @param {String} message for dialog text, which will precede an
unordered list of upload titles.
- */
- mw.UploadWizardDeleteDialog = function ( uploads, dialogTitle,
dialogText ) {
- var $filenameList = $( '<ul></ul>' ),
- buttons = {};
-
- $.each( uploads, function ( i, upload ) {
- if ( upload === undefined ) {
- return;
- }
- $filenameList.append( $( '<li></li>' ).append(
upload.title.getMain() ) );
- } );
-
- buttons[ mw.message( 'mwe-upwiz-remove', uploads.length
).escaped() ] = function () {
- $.each( uploads, function ( i, upload ) {
- if ( upload === undefined ) {
- return;
- }
- upload.remove();
- } );
- $( this ).dialog( 'close' );
- };
- buttons[ mw.message( 'mwe-upwiz-cancel', uploads.length
).escaped() ] = function () {
- $( this ).dialog( 'close' );
- };
-
- return $( '<div></div>' )
- .append( $( '<p></p>' ).append( dialogText ),
$filenameList )
- .dialog( {
- width: 500,
- zIndex: 200000,
- autoOpen: false,
- title: dialogTitle,
- modal: true,
- buttons: buttons
- } );
- };
-
mw.UploadWizardDeedPreview = function (upload) {
this.upload = upload;
};
--
To view, visit https://gerrit.wikimedia.org/r/239836
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd2fdd4273f70cc2a8c8a49cd913a1796ed8e1e9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits