mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 08:06:08 +10:00
Fix problems with award-emoji-only comment This fixes a conflict between note with only a single emoji in content and award-emojis mechanisms. Closes #3734 cc @vsizov See merge request !1936
17 lines
341 B
CoffeeScript
17 lines
341 B
CoffeeScript
class @Flash
|
|
constructor: (message, type)->
|
|
@flash = $(".flash-container")
|
|
@flash.html("")
|
|
|
|
innerDiv = $('<div/>',
|
|
class: "flash-#{type}",
|
|
text: message
|
|
)
|
|
innerDiv.appendTo(".flash-container")
|
|
|
|
@flash.click -> $(@).fadeOut()
|
|
@flash.show()
|
|
|
|
pin: ->
|
|
@flash.addClass('flash-pinned flash-raised')
|