From 45d765879ce7dee3326bd13efd77cf19181ce78c Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Tue, 16 Mar 2021 23:06:56 +0200 Subject: [PATCH 1/2] Apply patch posted by Mischa in #33338#note-5 --- public/javascripts/application.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 770d5900c..b322efc1e 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -364,15 +364,24 @@ function showIssueHistory(journal, url) { switch(journal) { case 'notes': + tab_content.find('.journal').show(); tab_content.find('.journal:not(.has-notes)').hide(); - tab_content.find('.journal.has-notes').show(); + tab_content.find('.journal .wiki').show(); + tab_content.find('.journal .thumbnails').show(); + tab_content.find('.journal .contextual .journal-actions').show(); break; case 'properties': - tab_content.find('.journal.has-notes').hide(); - tab_content.find('.journal:not(.has-notes)').show(); + tab_content.find('.journal').show(); + tab_content.find('.journal:not(.has-details)').hide(); + tab_content.find('.journal .wiki').hide(); + tab_content.find('.journal .thumbnails').hide(); + tab_content.find('.journal .contextual .journal-actions').hide(); break; default: tab_content.find('.journal').show(); + tab_content.find('.journal .wiki').show(); + tab_content.find('.journal .thumbnails').show(); + tab_content.find('.journal .contextual .journal-actions').show(); } return false; -- 2.22.0