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

Combine new javascript Flash methods into one

上级 f08f921d
...@@ -12,8 +12,5 @@ class @Flash ...@@ -12,8 +12,5 @@ class @Flash
@flash.click -> $(@).fadeOut() @flash.click -> $(@).fadeOut()
@flash.show() @flash.show()
pinToTop: -> pin: ->
@flash.addClass('flash-pinned') @flash.addClass('flash-pinned flash-raised')
raise: ->
@flash.addClass('flash-raised')
...@@ -114,8 +114,7 @@ class @Notes ...@@ -114,8 +114,7 @@ class @Notes
unless note.valid unless note.valid
if note.award if note.award
flash = new Flash('You have already used this award emoji !', 'alert') flash = new Flash('You have already used this award emoji !', 'alert')
flash.pinToTop() flash.pin()
flash.raise()
return return
# render note if it not present in loaded list # 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.
先完成此消息的编辑!
想要评论请 注册