Break long lines in JS code

Bug: T203365
Change-Id: If9d5f8d4c341f2f273eda3f1fd54d59a04a9d263
This commit is contained in:
Daimona Eaytoy 2018-09-03 10:49:24 +02:00
parent 48989ffcda
commit db4a0a1eec
2 changed files with 8 additions and 5 deletions

View file

@ -258,7 +258,9 @@
} )
.done( function ( html ) {
$( '#mw-abusefilter-warn-preview' ).show().html( html );
togglePreviewButton.setFlags( { destructive: true, progressive: false } );
togglePreviewButton.setFlags(
{ destructive: true, progressive: false }
);
} );
} );
} else {
@ -392,9 +394,9 @@
// Ace setup from codeEditor extension
basePath = mw.config.get( 'wgExtensionAssetsPath', '' );
if ( basePath.slice( 0, 2 ) === '//' ) {
// ACE uses web workers, which have importScripts, which don't like relative links.
// This is a problem only when the assets are on another server, so this rewrite should suffice
// Protocol relative
// ACE uses web workers, which have importScripts, which don't like
// relative links. This is a problem only when the assets are on another
// server, so this rewrite should suffice.
basePath = window.location.protocol + basePath;
}
ace.config.set( 'basePath', basePath + '/CodeEditor/modules/ace' );

View file

@ -52,7 +52,8 @@
} else if ( error === 'nosuchrcid' || error === 'nosuchlogid' ) {
msg = 'abusefilter-examine-notfound';
} else if ( error === 'permissiondenied' ) {
// The 'abusefilter-modify' or 'abusefilter-view-private' right is needed to use this API
// The 'abusefilter-modify' or 'abusefilter-view-private' right is needed
// to use this API
msg = 'abusefilter-mustviewprivateoredit';
} else if ( error === 'http' ) {
msg = 'abusefilter-http-error';