diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-15 14:04:07 -0500 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-15 14:06:31 -0500 |
commit | 604a811f80a16b7713a2a3fba0e7309d99ab2285 (patch) | |
tree | 59a952928697996d35cd7815e7ed3b82befe3b58 /app/assets/javascripts/awards_handler.coffee | |
parent | d04eadf822fc2513731dead7cd823ec5cd94a7ee (diff) | |
download | gitlab-ce-604a811f80a16b7713a2a3fba0e7309d99ab2285.tar.gz |
Fixes issue where firefox does not delete message after comment submitcomment-text-remains-in-text-box-after-submitting-it
Issue was **not** in the way comment was being submitted.
`app/assets/javascripts/awards_handler.coffee` was throwing an error.
This error was preventing any js from running after it.
Fixes #1473
Diffstat (limited to 'app/assets/javascripts/awards_handler.coffee')
-rw-r--r-- | app/assets/javascripts/awards_handler.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/awards_handler.coffee b/app/assets/javascripts/awards_handler.coffee index 619abb1fb07..4670c95344d 100644 --- a/app/assets/javascripts/awards_handler.coffee +++ b/app/assets/javascripts/awards_handler.coffee @@ -5,7 +5,7 @@ class @AwardsHandler event.preventDefault() $(".emoji-menu").show() - $("html").click -> + $("html").on 'click', (event) -> if !$(event.target).closest(".emoji-menu").length if $(".emoji-menu").is(":visible") $(".emoji-menu").hide() |