aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcglatot <[email protected]>2020-10-11 20:02:34 +0100
committercglatot <[email protected]>2020-10-11 20:02:34 +0100
commite15c377f72b4ce1006340926d9306fa9c0ce93b6 (patch)
tree364d25367f66a0b76374a2b1b7d81bcf9ac7b10a
parentc25e002b1b0d12fed485d6c1ca685659a63d530c (diff)
downloadpasta-e15c377f72b4ce1006340926d9306fa9c0ce93b6.tar.gz
pasta-e15c377f72b4ce1006340926d9306fa9c0ce93b6.zip
Scroll to tables
-rw-r--r--js/main.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index f314cfc..e810b75 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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) {