Defect #33338 » 0001-Apply-patch-posted-by-Mischa-in-33338-note-5.patch
| public/javascripts/application.js | ||
|---|---|---|
| 364 | 364 | |
| 365 | 365 |
switch(journal) {
|
| 366 | 366 |
case 'notes': |
| 367 |
tab_content.find('.journal').show();
|
|
| 367 | 368 |
tab_content.find('.journal:not(.has-notes)').hide();
|
| 368 |
tab_content.find('.journal.has-notes').show();
|
|
| 369 |
tab_content.find('.journal .wiki').show();
|
|
| 370 |
tab_content.find('.journal .thumbnails').show();
|
|
| 371 |
tab_content.find('.journal .contextual .journal-actions').show();
|
|
| 369 | 372 |
break; |
| 370 | 373 |
case 'properties': |
| 371 |
tab_content.find('.journal.has-notes').hide();
|
|
| 372 |
tab_content.find('.journal:not(.has-notes)').show();
|
|
| 374 |
tab_content.find('.journal').show();
|
|
| 375 |
tab_content.find('.journal:not(.has-details)').hide();
|
|
| 376 |
tab_content.find('.journal .wiki').hide();
|
|
| 377 |
tab_content.find('.journal .thumbnails').hide();
|
|
| 378 |
tab_content.find('.journal .contextual .journal-actions').hide();
|
|
| 373 | 379 |
break; |
| 374 | 380 |
default: |
| 375 | 381 |
tab_content.find('.journal').show();
|
| 382 |
tab_content.find('.journal .wiki').show();
|
|
| 383 |
tab_content.find('.journal .thumbnails').show();
|
|
| 384 |
tab_content.find('.journal .contextual .journal-actions').show();
|
|
| 376 | 385 |
} |
| 377 | 386 | |
| 378 | 387 |
return false; |