mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
VE integration: Remove "unrecoverable" errors
Bug: T307330 Depends-On: I9680cc416da5b27881aeb3502f506dcb5d4bb71f Change-Id: I80a0822b048d88c71f722e012bb250b53dce6155
This commit is contained in:
parent
3cb9ed9109
commit
1814e4ee22
|
@ -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