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 ) {
|
ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) {
|
||||||
// Handle spam blacklist error from Extension:SpamBlacklist
|
// Handle errors from Extension:SpamBlacklist
|
||||||
target.showSaveError(
|
target.showSaveError( target.extractErrorMessages( data ) );
|
||||||
target.extractErrorMessages( data ),
|
|
||||||
false // prevents reapply
|
|
||||||
);
|
|
||||||
// Emit event for tracking. TODO: This is a bad design
|
// Emit event for tracking. TODO: This is a bad design
|
||||||
target.emit( 'saveErrorSpamBlacklist' );
|
target.emit( 'saveErrorSpamBlacklist' );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue