diff options
Diffstat (limited to 'quotes/public/script.js')
-rw-r--r-- | quotes/public/script.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quotes/public/script.js b/quotes/public/script.js index 2c112e4..da1c38f 100644 --- a/quotes/public/script.js +++ b/quotes/public/script.js @@ -8,7 +8,7 @@ function appendOption(response) { "beforeend", `<option value="${elem["id"]}">${elem["name"]} ${elem["middlename"] ? elem["middlename"] : " "}${ elem["surname"] - }</option>` + }</option>`, ); }); } @@ -21,12 +21,12 @@ function appendQuote(response) { "beforeend", `<li>${elem["name"]} ${elem["middlename"] ? elem["middlename"] : " "}${elem["surname"]}: ${ elem["quote"] - }</li>` + }</li>`, ); }); } -fetch("/auth/api/list") +fetch("/auth/api/list?class=all") .then((response) => response.json()) .then((response) => appendOption(response)); |