diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-05 10:27:43 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-10 10:14:23 +0100 |
commit | fcd842b55837d2a8eab4ef32b65b5a44dfab6eba (patch) | |
tree | 7a6fdd2c94130aab0800d189c881b2bec7ae148a /app/assets/javascripts/notes.js | |
parent | cbfc97b112849299b0aaf3b5155e278d3db17c91 (diff) | |
download | gitlab-ce-fcd842b55837d2a8eab4ef32b65b5a44dfab6eba.tar.gz |
fixed notes specs
changed how the container class is added onto the text element
more specs
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index dafbfb59c99..cf7322ba1da 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -1213,13 +1213,13 @@ export default class Notes { } addFlash(...flashParams) { - this.flashInstance = new Flash(...flashParams); + this.flashContainer = new Flash(...flashParams); } clearFlash() { - if (this.flashInstance && this.flashInstance.flashContainer) { - this.flashInstance.flashContainer.hide(); - this.flashInstance = null; + if (this.flashContainer) { + this.flashContainer.style.display = 'none'; + this.flashContainer = null; } } |