提交 7af67f61 编写于 作者: G Grzegorz Bizon

Combine new javascript Flash methods into one

上级 f08f921d
......@@ -12,8 +12,5 @@ class @Flash
@flash.click -> $(@).fadeOut()
@flash.show()
pinToTop: ->
@flash.addClass('flash-pinned')
raise: ->
@flash.addClass('flash-raised')
pin: ->
@flash.addClass('flash-pinned flash-raised')
......@@ -114,8 +114,7 @@ class @Notes
unless note.valid
if note.award
flash = new Flash('You have already used this award emoji !', 'alert')
flash.pinToTop()
flash.raise()
flash.pin()
return
# render note if it not present in loaded list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册