diff options
author | Marvin Borner | 2020-10-03 11:56:46 +0200 |
---|---|---|
committer | Marvin Borner | 2020-10-03 11:56:46 +0200 |
commit | 148a9a5a63ed3e73d0a8709e7972fd1b1586c5b8 (patch) | |
tree | d5650c856ea18f1f0a7306028844587d4697e7be /quotes/public/script.js | |
parent | 970dfec33a2cd53ad72ba0da59c129f65d6032f6 (diff) |
Added class-specific filter
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)); |