From 5940a40a5accde00dbd40ac69c5b3ba43cae6925 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 29 Jul 2020 03:40:08 -0500 Subject: [PATCH] notes: hide note bodies when toggling notes. Bug: if you clicked preview on a note to show the note body, then clicked the image to hide the notes, then the note body wouldn't be hidden. --- app/javascript/src/javascripts/notes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/src/javascripts/notes.js b/app/javascript/src/javascripts/notes.js index 229e3a9d9..b03acfed2 100644 --- a/app/javascript/src/javascripts/notes.js +++ b/app/javascript/src/javascripts/notes.js @@ -370,6 +370,7 @@ class Note { } static toggle_all() { + Note.Body.hide_all(); $(".note-container").toggleClass("hide-notes"); } }