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.

- {% for entry in PAGE_SIZES %} {% endfor %} @@ -56,7 +56,7 @@

Change the default sorting for comments.

- {% for entry in COMMENT_SORTS %} {% endfor %} @@ -71,7 +71,7 @@

Change the default sorting for posts.

- {% for entry in SORTS %} {% endfor %} @@ -86,7 +86,7 @@

Change the default time filter for posts.

- {% for entry in TIME_FILTERS %} {% endfor %} @@ -115,7 +115,7 @@

Change the domain you would like to view reddit posts in.

- {% for entry in ['old.reddit.com', 'reddit.com', 'i.reddit.com', 'unddit.com', 'teddit.net', 'libredd.it'] %} {% endfor %} diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index 9dfec8868..8da7cfd45 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -29,7 +29,7 @@
- {% for entry in THEMES %}