mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Break long lines in JS code
Bug: T203365 Change-Id: If9d5f8d4c341f2f273eda3f1fd54d59a04a9d263
This commit is contained in:
parent
48989ffcda
commit
db4a0a1eec
|
@ -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' );
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue