diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-03 08:51:37 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-03 13:39:00 +0100 |
commit | 554f4684622564fe496acb25cacb2daed3b9f3ac (patch) | |
tree | 6ca95874c39be0f9d0718c367f31abfd152add11 | |
parent | 70a076c059482e5c26cb723b722bc865142460ea (diff) | |
download | gitlab-ce-554f4684622564fe496acb25cacb2daed3b9f3ac.tar.gz |
Pin flash message to top if award note is invalid
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index ea190fa8b76..8eacd05d050 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -113,7 +113,9 @@ class @Notes renderNote: (note) -> unless note.valid if note.award - new Flash('You have already used this award emoji !', 'alert') + flash = new Flash('You have already used this award emoji !', 'alert') + flash.pinToTop() + flash.raise() return # render note if it not present in loaded list |