Skip to content

Commit

Permalink
Merge pull request #5574 from avalonmediasystem/metadata_tab_navigation
Browse files Browse the repository at this point in the history
Disable transcript tab when there are no transcripts
  • Loading branch information
masaball authored Jan 16, 2024
2 parents 1082948 + c29226b commit 24fd05d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/media_objects/_item_view.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ Unless required by applicable law or agreed to in writing, software distributed
if(transcriptTab) {
if (transcriptTab.getAttribute('aria-selected') === "true") { detailTab.click(); }
transcriptTab.style.display = 'none';
transcriptTab.classList.add("disabled");
}
} else if (transcriptSections.includes(sectionId) && transcriptTab.style.display === 'none') {
transcriptTab.style.display = '';
transcriptTab.classList.remove("disabled");
}
}
});
Expand Down

0 comments on commit 24fd05d

Please sign in to comment.