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

richtext: Fix draft delete button

parent 7db248ea
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,8 @@ RedactorPlugins.draft = function() {
// Add [Delete Draft] button to the toolbar
if (this.opts.draftDelete) {
var trash = this.draft.deleteButton =
this.button.add('deleteDraft', __('Delete Draft'),
this.draft.deleteDraft);
this.button.add('deleteDraft', __('Delete Draft'))
this.button.addCallback(trash, this.draft.deleteDraft);
this.button.setAwesome('deleteDraft', 'icon-trash');
trash.parent().addClass('pull-right');
trash.addClass('delete-draft');
......
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