]> source.dussan.org Git - redmine.git/commitdiff
Property changes tab does not show journals with both property changes and notes...
authorGo MAEDA <maeda@farend.jp>
Thu, 18 Mar 2021 14:36:58 +0000 (14:36 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 18 Mar 2021 14:36:58 +0000 (14:36 +0000)
Patch by Mischa The Evil and Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@20822 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index bef8f592f7de9eec074c08a411ca674c9567a4a7..aa0c9ed0bd07053629fdf0b8eb9132afd7bae2bd 100644 (file)
@@ -364,15 +364,29 @@ 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 .contextual .journal-actions').show();
+
+      // always show thumbnails in notes tab
+      var thumbnails = tab_content.find('.journal .thumbnails');
+      thumbnails.show();
+      // show journals without notes, but with thumbnails
+      thumbnails.parents('.journal').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;