Skip to content
Snippets Groups Projects
Commit e0fc657d authored by Jared Hancock's avatar Jared Hancock
Browse files

Await draft deletion before refreshing the page

If the [reset] button refreshes the page, ensure the draft deletion is
completed before the refresh is performed or the draft deletion will be
canceled.
parent 0d229710
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,7 @@ RedactorPlugins.draft = {
var self = this;
$.ajax('ajax.php/draft/'+this.draft_id, {
type: 'delete',
async: false,
success: function() {
self.opts.autosave = '';
self.opts.imageUpload = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment