Welcome to mirror list, hosted at ThFree Co, Russian Federation.

flash.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b39ab0c447580cbd7f5ef80f38f395da8f1bba1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class @Flash
  constructor: (message, type)->
    flash = $(".flash-container")
    flash.html("")

    $('<div/>',
      class: "flash-#{type}",
      text: message
    ).appendTo(".flash-container")

    flash.click -> $(@).fadeOut()
    flash.show()