mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-27 16:40:04 +00:00
Merge "VE integration: Remove "unrecoverable" errors"
This commit is contained in:
commit
311e8874bc
|
@ -14,11 +14,8 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
|
|||
};
|
||||
|
||||
ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) {
|
||||
// Handle spam blacklist error from Extension:SpamBlacklist
|
||||
target.showSaveError(
|
||||
target.extractErrorMessages( data ),
|
||||
false // prevents reapply
|
||||
);
|
||||
// Handle errors from Extension:SpamBlacklist
|
||||
target.showSaveError( target.extractErrorMessages( data ) );
|
||||
// Emit event for tracking. TODO: This is a bad design
|
||||
target.emit( 'saveErrorSpamBlacklist' );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue