From fcd842b55837d2a8eab4ef32b65b5a44dfab6eba Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 5 Oct 2017 10:27:43 +0100 Subject: fixed notes specs changed how the container class is added onto the text element more specs --- app/assets/javascripts/notes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/assets/javascripts/notes.js') 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; } } -- cgit v1.2.3