From 148a9a5a63ed3e73d0a8709e7972fd1b1586c5b8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 3 Oct 2020 11:56:46 +0200 Subject: Added class-specific filter --- quotes/public/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quotes/public/script.js') 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", `` + }`, ); }); } @@ -21,12 +21,12 @@ function appendQuote(response) { "beforeend", `
  • ${elem["name"]} ${elem["middlename"] ? elem["middlename"] : " "}${elem["surname"]}: ${ elem["quote"] - }
  • ` + }`, ); }); } -fetch("/auth/api/list") +fetch("/auth/api/list?class=all") .then((response) => response.json()) .then((response) => appendOption(response)); -- cgit v1.2.3