diff options
author | Go MAEDA <maeda@farend.jp> | 2021-03-18 14:36:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-03-18 14:36:58 +0000 |
commit | 77e199e817d841c65bab8405056ad4b71c19062e (patch) | |
tree | 7392684ae1e3f839a54f5c8c6b941874735bd16a /public/javascripts | |
parent | 0d96c4ebdb1cceeb6cac8f940a11b5407a0a5211 (diff) | |
download | redmine-77e199e817d841c65bab8405056ad4b71c19062e.tar.gz redmine-77e199e817d841c65bab8405056ad4b71c19062e.zip |
Property changes tab does not show journals with both property changes and notes (#33338).
Patch by Mischa The Evil and Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20822 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/application.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index bef8f592f..aa0c9ed0b 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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; |