Logic error. Fixes #2154

This commit is contained in:
Samuel Georges 2016-07-01 18:56:58 +10:00
parent b7d0c19a38
commit 43eb8c4946

View File

@ -91,7 +91,8 @@
//
MarkdownEditor.prototype.onClickToolbarButton = function(ev) {
var $button = $(ev.target).closest('.btn'),
var $target = $(ev.target),
$button = $target.is('a') ? $target : $target.closest('.btn'),
action = $button.data('button-action'),
template = $button.data('button-template')