diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/contrib/torrents/web/main.js /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/contrib/torrents/web/main.js --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/contrib/torrents/web/main.js 2026-10-18 14:49:01.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/contrib/torrents/web/main.js 2026-10-18 14:46:15.000000000 +0000 @@ -107,5 +107,4 @@ if (r.result !== "success") alert(r.result); - refreshTable(); } } @@ -294,4 +293,5 @@ if (torrents_data.length === 0) { + el_torrents.style.display = "none"; el_torrents.replaceChildren(); clearError(); @@ -389,5 +389,5 @@ if (tr_obj.status === 6) - cell.textContent = leechers || "" // we are seeding + cell.textContent = leechers ? `${leechers}` : "" // we are seeding else if (seeders || leechers) cell.textContent = `${seeders} / ${leechers}`; // we are leeching @@ -550,5 +550,5 @@ // close torrent details window.closeDetailsModal = () => { - el_details.replaceChildren(); + el_details.style.display = "none"; stopDetailsTimer(); }; @@ -897,4 +897,5 @@ el_details.replaceChildren(fs_main); + el_details.style.display = "block"; startDetailsTimer(tr_id);