Defect #33338 » history_tabs.patch
| public/javascripts/application.js 2020-04-22 11:34:18.517014138 +0200 | ||
|---|---|---|
| 371 | 371 | |
| 372 | 372 |
switch(journal) {
|
| 373 | 373 |
case 'notes': |
| 374 |
tab_content.find('.journal').show();
|
|
| 374 | 375 |
tab_content.find('.journal:not(.has-notes)').hide();
|
| 375 |
tab_content.find('.journal.has-notes').show();
|
|
| 376 |
tab_content.find('.journal .wiki').show();
|
|
| 377 |
tab_content.find('.journal .details').hide();
|
|
| 376 | 378 |
break; |
| 377 | 379 |
case 'properties': |
| 378 |
tab_content.find('.journal.has-notes').hide();
|
|
| 379 |
tab_content.find('.journal:not(.has-notes)').show();
|
|
| 380 |
tab_content.find('.journal').show();
|
|
| 381 |
tab_content.find('.journal:not(.has-details)').hide();
|
|
| 382 |
tab_content.find('.journal .details').show();
|
|
| 383 |
tab_content.find('.journal .wiki').hide();
|
|
| 380 | 384 |
break; |
| 381 | 385 |
default: |
| 382 | 386 |
tab_content.find('.journal').show();
|
| 387 |
tab_content.find('.journal .wiki').show();
|
|
| 388 |
tab_content.find('.journal .details').show();
|
|
| 383 | 389 |
} |
| 384 | 390 | |
| 385 | 391 |
return false; |