summaryrefslogtreecommitdiffstats
path: root/client/lib/escapeActions.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-25 20:23:11 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-25 20:31:14 +0200
commit22e854cc30474b13f2981de9a44661b8a7baa5ba (patch)
tree1f637fe27d582698d77a1f753f513de064421c43 /client/lib/escapeActions.js
parent6730478008f0806b283a64f37d5f716fc38b1abe (diff)
downloadwekan-22e854cc30474b13f2981de9a44661b8a7baa5ba.tar.gz
wekan-22e854cc30474b13f2981de9a44661b8a7baa5ba.tar.bz2
wekan-22e854cc30474b13f2981de9a44661b8a7baa5ba.zip
Fix a type: document -> document.body
Does that fix #176?
Diffstat (limited to 'client/lib/escapeActions.js')
-rw-r--r--client/lib/escapeActions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/lib/escapeActions.js b/client/lib/escapeActions.js
index 1173dc46..e0b4c7c6 100644
--- a/client/lib/escapeActions.js
+++ b/client/lib/escapeActions.js
@@ -150,7 +150,7 @@ Mousetrap.bindGlobal('esc', function() {
// On a left click on the document, we try to exectute one escape action (eg,
// close the popup). We don't execute any action if the user has clicked on a
// link or a button.
-$(document).on('click', function(evt) {
+$(document.body).on('click', function(evt) {
if (evt.which === 1 &&
$(evt.target).closest('a,button,.is-editable').length === 0) {
EscapeActions.clickExecute(evt.target, 'multiselection');