Commit 7af67f61 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Combine new javascript Flash methods into one

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment