summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/javascripts/application.js20
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;