From 6341c81629b3ede7f8e807690d364ba40df334c4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 18 Oct 2015 20:43:11 +0200 Subject: [PATCH] Remove clickCatcher on release. --- .../lib/app_post/user_organization_autocompletion.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee b/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee index 197cfcfc6..7c6a6f77f 100644 --- a/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee +++ b/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee @@ -24,9 +24,15 @@ class App.UserOrganizationAutocompletion extends App.Controller element: => @el + release: => + return if !@catcher + @catcher.remove() + open: => @clearDelay('close') @el.addClass('open') + if @catcher + @catcher.remove() @catcher = new App.ClickCatcher holder: @el.offsetParent() callback: @close