From 22e854cc30474b13f2981de9a44661b8a7baa5ba Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 25 Aug 2015 20:23:11 +0200 Subject: Fix a type: document -> document.body Does that fix #176? --- client/lib/escapeActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') 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'); -- cgit v1.2.3-1-g7c22