mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Was checking the wrong thing for undefined
Change-Id: I11b813fe8708ef03db2f8b884b3766d8cbe887ce
This commit is contained in:
parent
cf1c033bff
commit
4ffc6fff60
|
@ -101,7 +101,7 @@ ve.init.Target.onLoadError = function( response, text, exception ) {
|
|||
ve.init.Target.onSave = function( response, status ) {
|
||||
this.saving = false;
|
||||
var data = response['ve-parsoid'];
|
||||
if ( !response ) {
|
||||
if ( !data ) {
|
||||
this.emit( 'saveError', 'Invalid response from server' );
|
||||
} else if ( data.result !== 'success' ) {
|
||||
this.emit( 'saveError', 'Unsuccessful request: ' + data.result );
|
||||
|
|
Loading…
Reference in a new issue