From da403e01d830a2cadd4ea916693caca5f2e175d0 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Tue, 28 Jan 2025 00:42:53 +0300 Subject: [PATCH] Update rssDownloader.html --- .../www/private/views/rssDownloader.html | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/webui/www/private/views/rssDownloader.html b/src/webui/www/private/views/rssDownloader.html index 4a0b8d6ce..c70f6754a 100644 --- a/src/webui/www/private/views/rssDownloader.html +++ b/src/webui/www/private/views/rssDownloader.html @@ -428,27 +428,26 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also showRule(""); } }); - // get all categories and add to combobox - fetch("api/v2/torrents/categories", { - method: "GET", - cache: "no-store" - }) - .then(async (response) => { - if (!response.ok) - return; + // get all categories and add to combobox + fetch("api/v2/torrents/categories", { + method: "GET", + cache: "no-store" + }) + .then(async (response) => { + if (!response.ok) return; - const responseJSON = await response.json(); + const responseJSON = await response.json(); - const combobox = $("assignCategoryCombobox"); - for (const cat in responseJSON) { - if (!Object.hasOwn(responseJSON, cat)) - continue; + const combobox = $("assignCategoryCombobox"); + for (const cat in responseJSON) { + if (!Object.hasOwn(responseJSON, cat)) continue; - const option = document.createElement("option"); - option.text = option.value = cat; - combobox.add(option); - } - }); + const option = document.createElement("option"); + option.value = cat; + option.appendChild(document.createTextNode(cat)); + combobox.add(option); + } + }); // get all rss feed const url = new URL("api/v2/rss/items", window.location); url.search = new URLSearchParams({