From d13e3500b28a02135200078bda613793c20f6074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Thu, 4 Sep 2014 11:45:55 +0200 Subject: [PATCH] Fix bug #851: Error when press Enter key when edit a wiki before closing the assignation lightbox pressing ESC key --- app/coffee/modules/common/lightboxes.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 1b5efe4a..6bcca95c 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -41,6 +41,7 @@ class LightboxService extends taiga.Service close: ($el) -> docEl = angular.element(document) docEl.off(".lightbox") + docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER $el.one "transitionend", => $el.css('display', 'none') @@ -92,6 +93,7 @@ class LightboxKeyboardNavigationService extends taiga.Service module.service("lightboxKeyboardNavigationService", LightboxKeyboardNavigationService) + ############################################################################# ## Generic Lighthbox Directive #############################################################################