Merge "Show error when trying to save in read-only mode"

This commit is contained in:
jenkins-bot 2013-07-24 14:35:52 +00:00 committed by Gerrit Code Review
commit 9e8ce997db

View file

@ -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)