Skip to content

Commit b4453b9

Browse files
committed
anrfc-lister: fix linter errors
1 parent 827553c commit b4453b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

anrfc-lister.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const style = `.anrfc-box {
8181
}
8282
`;
8383

84-
mw.util.addCSS(style);
84+
mw.util.addCSS( style );
8585

8686
class ANRFC {
8787
constructor( document, mw, $ ) {
@@ -124,10 +124,10 @@ class ANRFC {
124124
toggle() {
125125
const $anrfcListerLinkInMoreMenu = this.$( '#ca-anrfc a' );
126126
if ( $anrfcListerLinkInMoreMenu.hasClass( 'anrfc-link-active' ) ) {
127-
$anrfcListerLinkInMoreMenu.removeClass('anrfc-link-active');
127+
$anrfcListerLinkInMoreMenu.removeClass( 'anrfc-link-active' );
128128
this.removeLabels();
129129
} else {
130-
$anrfcListerLinkInMoreMenu.addClass('anrfc-link-active');
130+
$anrfcListerLinkInMoreMenu.addClass( 'anrfc-link-active' );
131131
this.addLabels();
132132
}
133133
}
@@ -175,7 +175,7 @@ class ANRFC {
175175
getFormHtmlAndSetFormListeners( keyId ) {
176176
const $anrfcBox = this.$( '<div>', {
177177
id: keyId,
178-
class: "anrfc-box"
178+
class: 'anrfc-box'
179179
} );
180180

181181
const items = [];
@@ -222,8 +222,8 @@ class ANRFC {
222222
wrapper = this.document.createElement( 'div' );
223223
this.$( wrapper ).addClass( 'anrfc-box-margins' );
224224
this.$( wrapper ).append( messageInput.$element );
225-
this.$( wrapper ).append( this.$( submitButton.$element ).addClass( 'anrfc-box-margins' ));
226-
this.$( wrapper ).append( this.$( cancelButton.$element ).addClass( 'anrfc-box-margins' ));
225+
this.$( wrapper ).append( this.$( submitButton.$element ).addClass( 'anrfc-box-margins' ) );
226+
this.$( wrapper ).append( this.$( cancelButton.$element ).addClass( 'anrfc-box-margins' ) );
227227
$anrfcBox.append( wrapper );
228228

229229
submitButton.on( 'click', () => {

0 commit comments

Comments
 (0)