mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
ve.init.mw.Target: Update TitleBlacklist error code
The error code has changed after T115258 and is now consistently 'titleblacklist-forbidden' for all TitleBlacklist errors. The API now also provides information about the exact error message to display (error.message) and the TitleBlacklist rule that matched (error.line), but we probably don't have that message client-side, so we're not trying to display it. Maybe when we can load it (T40280). Bug: T116198 Change-Id: I32fccc7d0b2b66c739d59db05c568a56d9f07eec
This commit is contained in:
parent
8afae11a1c
commit
4a1a9bbf82
|
@ -586,7 +586,7 @@ ve.init.mw.Target.prototype.saveFail = function ( doc, saveData, jqXHR, status,
|
||||||
} else if ( data.error && data.error.code === 'pagedeleted' ) {
|
} else if ( data.error && data.error.code === 'pagedeleted' ) {
|
||||||
this.saveErrorPageDeleted();
|
this.saveErrorPageDeleted();
|
||||||
return;
|
return;
|
||||||
} else if ( data.error && data.error.code === 'titleblacklist-forbidden-edit' ) {
|
} else if ( data.error && data.error.code === 'titleblacklist-forbidden' ) {
|
||||||
this.saveErrorTitleBlacklist();
|
this.saveErrorTitleBlacklist();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue