diff --git a/client/episodes.html b/client/episodes.html index 319fe14..79da232 100644 --- a/client/episodes.html +++ b/client/episodes.html @@ -188,19 +188,43 @@
@@ -319,6 +343,18 @@ .then(function () {}); return false; } + document.getElementById('pageDdl').addEventListener('change', function() { + currentPage= {{.page}}; + if(parseInt(this.value)===currentPage){ + return; + } + var queryParams = new URLSearchParams(window.location.search); + + // Set new or modify existing parameter value. + queryParams.set("page", this.value); + + window.top.location= window.top.location.origin+window.top.location.pathname+"?"+queryParams.toString(); + });