diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 70bb7560e..1ad3486d1 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -92,14 +92,17 @@ for (const element of setting_switchs) { }; } -const setting_reloads = document.getElementsByClassName('setting_reload'); -for (const element of setting_reloads) { +const setting_selects = document.getElementsByClassName('setting_select'); +for (const element of setting_selects) { if (element.dataset.nonce != nonce) { console.log("Nonce check failed!") continue } element.onchange = () => { - postToastReload(element,`/settings/personal?${element.name}=${element.value}`); + if (element.dataset.reload) + postToastReload(element,`/settings/personal?${element.name}=${element.value}`); + else + postToast(element,`/settings/personal?${element.name}=${element.value}`); }; } diff --git a/files/templates/settings/advanced.html b/files/templates/settings/advanced.html index b0663a835..72b20d53d 100644 --- a/files/templates/settings/advanced.html +++ b/files/templates/settings/advanced.html @@ -41,7 +41,7 @@
Change how many posts appear on every page.