Nischayn22 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/52878
Change subject: Remove unused variables as per jsHint.
......................................................................
Remove unused variables as per jsHint.
Change-Id: I4388f7707ef7e681f96aecfe0c3b523039ab272b
---
M resources/mw.UploadWizard.js
1 file changed, 0 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/78/52878/1
diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index e044053..f3a954c 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -199,8 +199,6 @@
// if returns false, you can assume there are
notifications in the interface.
if ( _this.deedChooser.valid() ) {
- var lastUploadIndex =
_this.uploads.length - 1;
-
$j.each( _this.uploads, function ( i,
upload ) {
if ( upload === undefined ) {
return;
@@ -458,9 +456,6 @@
$j( 'html, body' ).animate( { scrollTop: headScroll.top,
scrollLeft: headScroll.left }, 'slow' );
$j.each( _this.stepNames, function(i, stepName) {
- // the step indicator
- var step = $j( '#mwe-upwiz-step-' + stepName );
-
// the step's contents
var stepDiv = $j( '#mwe-upwiz-stepdiv-' + stepName );
@@ -497,8 +492,6 @@
*/
resetFileStepUploads: function() {
if ( this.uploads.length === 0 ) {
- // add one upload field to start (this is the big one
that asks you to upload something)
- var upload = this.newUpload();
// hide flickr uploading button if user doesn't have
permissions
if ( !mw.UploadWizard.config.UploadFromUrl ||
mw.UploadWizard.config.flickrApiKey === '' ) {
$j( '#mwe-upwiz-upload-ctrl-flickr-container,
#mwe-upwiz-flickr-select-list-container' ).hide();
--
To view, visit https://gerrit.wikimedia.org/r/52878
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4388f7707ef7e681f96aecfe0c3b523039ab272b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Nischayn22 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits