Update eslint and stylelint and fixes
Change-Id: I02e615e0efa95b673702f1ce8c957a37397ced13
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
"test": "grunt test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.4.0",
|
||||
"eslint-config-wikimedia": "0.5.0",
|
||||
"grunt": "1.0.1",
|
||||
"grunt-banana-checker": "0.5.0",
|
||||
"grunt-eslint": "19.0.0",
|
||||
"grunt-banana-checker": "0.6.0",
|
||||
"grunt-eslint": "20.0.0",
|
||||
"grunt-jsonlint": "1.1.0",
|
||||
"grunt-stylelint": "0.7.0",
|
||||
"grunt-stylelint": "0.8.0",
|
||||
"stylelint": "7.8.0",
|
||||
"stylelint-config-wikimedia": "0.4.1"
|
||||
}
|
||||
|
||||
@@ -59,14 +59,14 @@
|
||||
|
||||
api = new mw.Api();
|
||||
api.saveOption( 'language', language )
|
||||
.done( function () {
|
||||
location.reload();
|
||||
} )
|
||||
.fail( function () {
|
||||
// Set options failed. Maybe the user has logged off.
|
||||
// Continue like anonymous user and set cookie.
|
||||
changeLanguageAnon();
|
||||
} );
|
||||
.done( function () {
|
||||
location.reload();
|
||||
} )
|
||||
.fail( function () {
|
||||
// Set options failed. Maybe the user has logged off.
|
||||
// Continue like anonymous user and set cookie.
|
||||
changeLanguageAnon();
|
||||
} );
|
||||
} );
|
||||
|
||||
mw.hook( 'mw.uls.interface.language.change' ).fire( language, deferred );
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
id: imeId,
|
||||
value: imeId
|
||||
} )
|
||||
.prop( 'checked', selected );
|
||||
.prop( 'checked', selected );
|
||||
|
||||
if ( imeId === 'system' ) {
|
||||
name = $.i18n( 'ext-uls-disable-input-method' );
|
||||
|
||||
Reference in New Issue
Block a user