mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Show error when trying to save in read-only mode"
This commit is contained in:
commit
9e8ce997db
|
@ -452,6 +452,13 @@ ve.init.mw.ViewPageTarget.prototype.onSaveError = function ( jqXHR, status, data
|
|||
return;
|
||||
}
|
||||
|
||||
if ( data.error ) {
|
||||
ve.init.mw.Target.onSerializeError.call(
|
||||
this, null, 'Unsuccessful request: ' + data.error.info, null
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
editApi = data && data.visualeditoredit && data.visualeditoredit.edit;
|
||||
|
||||
// Handle spam blacklist error (either from core or from Extension:SpamBlacklist)
|
||||
|
|
Loading…
Reference in a new issue