Commit 895e29fc authored by alexpott's avatar alexpott
Browse files

Issue #1955292 by tmckeown, droplet, nod_: JSHint edit.

parent 34eac38d
......@@ -267,7 +267,7 @@ Drupal.edit.AppView = Backbone.View.extend({
that.model.set('activeModal', null);
// Set the state that matches the user's action.
var targetState = (action === 'discard') ? 'candidate' : 'saving';
that.model.get('activeEditor').set('state', 'candidate', { confirmed: true });
that.model.get('activeEditor').set('state', targetState, { confirmed: true });
}
});
this.model.set('activeModal', modal);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment