diff options
author | cglatot <[email protected]> | 2020-10-11 20:02:34 +0100 |
---|---|---|
committer | cglatot <[email protected]> | 2020-10-11 20:02:34 +0100 |
commit | e15c377f72b4ce1006340926d9306fa9c0ce93b6 (patch) | |
tree | 364d25367f66a0b76374a2b1b7d81bcf9ac7b10a /js | |
parent | c25e002b1b0d12fed485d6c1ca685659a63d530c (diff) | |
download | pasta-e15c377f72b4ce1006340926d9306fa9c0ce93b6.tar.gz pasta-e15c377f72b4ce1006340926d9306fa9c0ce93b6.zip |
Scroll to tables
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -506,6 +506,10 @@ function displayLibraries(data) { </tr>`; $("#libraryTable tbody").append(rowHTML); } + // Scroll to the table + document.querySelector('#libraryTable').scrollIntoView({ + behavior: 'smooth' + }); } function getAlphabet(uid, row) { @@ -607,6 +611,10 @@ function displayTitles(titles) { </tr>`; $("#tvShowsTable tbody").append(rowHTML); } + // Scroll to the table + document.querySelector('#tvShowsTable').scrollIntoView({ + behavior: 'smooth' + }); } function getTitleInfo(uid, row) { @@ -714,6 +722,10 @@ function showSeasonInfo(data, row) { </tr>`; $("#episodesTable tbody").append(rowHTML); } + // Scroll to the table + document.querySelector('#episodesTable').scrollIntoView({ + behavior: 'smooth' + }); } function getEpisodeInfo(uid, row) { @@ -776,6 +788,11 @@ function showEpisodeInfo(data, row) { <td class="code">--</td> </tr>`; $("#subtitleTable tbody").prepend(noSubsRow); + + // Scroll to the table + document.querySelector('#audioTable').scrollIntoView({ + behavior: 'smooth' + }); } async function setAudioStream(partsId, streamId, row) { |