Skip to content

Commit e81cc5d

Browse files
committed
(eslint) Fix eslint warnings
1 parent 32806f2 commit e81cc5d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

extension.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Moderation",
3-
"version": "1.8.21",
3+
"version": "1.8.22",
44
"author": "Edward Chernenko",
55
"url": "https://www.mediawiki.org/wiki/Extension:Moderation",
66
"descriptionmsg": "moderation-desc",
@@ -422,19 +422,19 @@
422422
"value": "",
423423
"description": "Email address to send notifications to."
424424
},
425-
"ModerationUseAjax": {
425+
"ModerationUseAjax": {
426426
"value": false,
427427
"description": "Experimental: if true, enable Ajax handling of links on Special:Moderation."
428428
},
429-
"ModerationOnlyInNamespaces": {
429+
"ModerationOnlyInNamespaces": {
430430
"value": [],
431431
"description": "If set to an array of namespace numbers (e.g. NS_MAIN, NS_FILE), moderation is only enabled in these namespaces (edits in other namespaces will bypass moderation). Default (empty array): moderation is enabled everywhere."
432432
},
433-
"ModerationIgnoredInNamespaces": {
433+
"ModerationIgnoredInNamespaces": {
434434
"value": [],
435435
"description": "If set to an array of namespace numbers (e.g. NS_MAIN, NS_FILE), non-automoderated users can bypass moderation in these namespaces. Default (empty array): moderation can't be bypassed anywhere."
436436
},
437-
"ModerationEnableEditChange": {
437+
"ModerationEnableEditChange": {
438438
"value": false,
439439
"description": "If true, moderators are allowed to edit pending changes before approving. DANGEROUS: moderator can accidentally delete the text of pending change. Enable this only when you use Moderation for pre-publish review."
440440
}

modules/ext.moderation.notify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@
9595
} ).done( function ( ret ) {
9696
var parsed = ret.query.moderationpreload.parsed;
9797
if ( parsed ) {
98-
var $div = $( '<div>' ).html( parsed.text );
98+
var $div2 = $( '<div>' ).html( parsed.text );
9999
mw.hook( 'wikipage.content' ).fire(
100-
$( '#mw-content-text' ).empty().append( $div )
100+
$( '#mw-content-text' ).empty().append( $div2 )
101101
);
102102

103103
$( '#catlinks' ).html( parsed.categorieshtml );

tests/selenium/pageobjects/postedit.page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class PostEdit extends Page {
3838
$( '.mw-notification-visible' ).waitForExist();
3939
}
4040

41-
this.inittime = new Date().getTime(); /* Used in waitUsualFadeTime() */
41+
this.inittime = Date.now(); /* Used in waitUsualFadeTime() */
4242
}
4343

4444
/**
4545
@brief Pause until the time when MediaWiki should have removed this notification.
4646
*/
4747
waitUsualFadeTime() {
48-
browser.pause( this.usualFadeTime - ( new Date().getTime() - this.inittime ) );
48+
browser.pause( this.usualFadeTime - ( Date.now() - this.inittime ) );
4949
}
5050
}
5151

tests/selenium/specs/mobilefrontend-preload.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ describe( 'When user opens MobileFrontend editor and has a pending edit', functi
3838
} );
3939

4040
/* Test preloading of a single section into MobileFrontend */
41-
for ( var idx in Sections ) {
42-
it( 'section #' + idx + ' should be shown', function ( idx ) {
41+
for ( var sectionNumber in Sections ) {
42+
it( 'section #' + sectionNumber + ' should be shown', function ( idx ) {
4343
MobileFrontend.open( PageName, idx );
4444

4545
browser.waitUntil( function () {
@@ -50,7 +50,7 @@ describe( 'When user opens MobileFrontend editor and has a pending edit', functi
5050
MobileFrontend.content.getValue(),
5151
'MobileFrontend.content[' + idx + ']' )
5252
.to.equal( Sections[ idx ] );
53-
}.bind( null, idx ) );
53+
}.bind( null, sectionNumber ) );
5454
}
5555

5656
it( 'edit summary should be shown', function () {

0 commit comments

Comments
 (0)