From cd3d1ada497d3b4c794fc9d86f49b147a38d1439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 5 May 2020 21:25:03 -0400 Subject: [PATCH] WIP --- views/_main.html | 8 ++++---- views/episodes.html | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/views/_main.html b/views/_main.html index 54f4e604f..7a8eef853 100644 --- a/views/_main.html +++ b/views/_main.html @@ -140,10 +140,10 @@
diff --git a/views/episodes.html b/views/episodes.html index 631c51e56..212074e8b 100644 --- a/views/episodes.html +++ b/views/episodes.html @@ -339,6 +339,15 @@ responsive: true, pageLength: {{ settings.general.page_size }}, ajax: "{{ url_for('api.episodes') }}?seriesid={{id}}", + initComplete: function() { + $('.dtrg-start').each( function(i, item) { + if (i > 0) { + var name = $(item).data('name'); + collapsedGroups[name] = !collapsedGroups[name]; + table.draw(false); + } + }) + }, rowGroup: { dataSrc: 'season', startRender: function (rows, group) {