Commit 6fc1b948 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Show flash message instead of alert when note is invalid

parent 4676ba1f
...@@ -112,7 +112,8 @@ class @Notes ...@@ -112,7 +112,8 @@ class @Notes
### ###
renderNote: (note) -> renderNote: (note) ->
unless note.valid unless note.valid
alert('You have already used this award emoji !') if note.award if note.award
new Flash('You have already used this award emoji !', 'alert')
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