WebUI: Fix bug where you can't select RSS rules

Fixes bug caused by #21731.

PR #21857.
This commit is contained in:
Patrik Elfström 2024-11-18 19:40:22 +01:00 committed by GitHub
parent 928de36093
commit 530631322d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -422,9 +422,11 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also
rssDownloaderRuleContextMenu.addTarget($("rulesTable"));
// deselect feed when clicking on empty part of table
$("rulesTable").addEventListener("click", (e) => {
rssDownloaderRulesTable.deselectAll();
rssDownloaderRulesTable.deselectRow();
showRule("");
if (e.target.nodeName === "DIV") {
rssDownloaderRulesTable.deselectAll();
rssDownloaderRulesTable.deselectRow();
showRule("");
}
});
$("rulesTable").addEventListener("contextmenu", (e) => {
if (e.toElement.nodeName === "DIV") {