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

Fixes bug caused by #21731
This commit is contained in:
Patrik Elfström 2024-11-15 22:46:42 +01:00
commit 8d91ba6e7f
No known key found for this signature in database
GPG key ID: FB7364E56AB95F97

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) => {
if (e.target.nodeName === "DIV") {
rssDownloaderRulesTable.deselectAll();
rssDownloaderRulesTable.deselectRow();
showRule("");
}
});
$("rulesTable").addEventListener("contextmenu", (e) => {
if (e.toElement.nodeName === "DIV") {