diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-11 13:03:09 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-11 13:50:14 +0100 |
commit | d1211e0ada61896c3a7a02c4fe7138705b086022 (patch) | |
tree | 656f1db5028a827d535e2d78165211c457de8bde /app/assets/javascripts/notes.js.coffee | |
parent | 2029be038b1a7f960f11b51511e081a1a8337d98 (diff) | |
download | gitlab-ce-d1211e0ada61896c3a7a02c4fe7138705b086022.tar.gz |
Fix award-emojis alert flash message
This adds a new feature to `Flash` that allows to pin it after a
specified selector. This removes a fixed position from such award-emoji
alert, and makes it responsive by design of selector that this alert is
pinned to.
Closes #3996
Diffstat (limited to 'app/assets/javascripts/notes.js.coffee')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index b1df56b24fe..a7d720fff4b 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -114,7 +114,7 @@ class @Notes unless note.valid if note.award flash = new Flash('You have already used this award emoji!', 'alert') - flash.pin() + flash.pinTo('.header-content') return # render note if it not present in loaded list |