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