Skip to content

Commit

Permalink
Merge pull request #172 from alessandrofrancesconi/wysihtml
Browse files Browse the repository at this point in the history
---

When a toolbar dialog gets closed by pressing the relative button on the toolbar menu, fire "cancel" event instead of "hide" in order to activate a (possibly) registered "cancel:dialog" callback.

Moreover, the "hide" event is never observed by the toolbar, that only reacts on "show", "save" and, finally, "cancel".
  • Loading branch information
Oliver Pulges committed Jun 4, 2015
2 parents 810edd2 + 72e7f67 commit 776341d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbar/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
this.elementToChange = null;
dom.removeClass(this.link, CLASS_NAME_OPENED);
this.container.style.display = "none";
this.fire("hide");
this.fire("cancel");
}
});
})(wysihtml5);

0 comments on commit 776341d

Please sign in to comment.