diff --git a/assets/javascripts/templates/notif_tmpl.coffee b/assets/javascripts/templates/notif_tmpl.coffee index 767947a2..b1a584d3 100644 --- a/assets/javascripts/templates/notif_tmpl.coffee +++ b/assets/javascripts/templates/notif_tmpl.coffee @@ -1,6 +1,6 @@ notif = (title, html) -> html = html.replace /#{title}#{html}
""" + """
#{title}
#{html}
""" textNotif = (title, message) -> notif title, """

#{message}""" diff --git a/assets/javascripts/views/misc/notif.coffee b/assets/javascripts/views/misc/notif.coffee index c6e87ce0..12dea496 100644 --- a/assets/javascripts/views/misc/notif.coffee +++ b/assets/javascripts/views/misc/notif.coffee @@ -48,7 +48,7 @@ class app.views.Notif extends app.View return onClick: (event) => - unless event.target.tagName is 'A' + if event.target.tagName isnt 'A' or event.target.classList.contains('_notif-close') $.stopEvent(event) @hide() return