From 07104226be87a8932d6d0262a7aa6befcf6ad9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 30 Jan 2023 12:11:00 +0100 Subject: [PATCH] web: url clearing --- public/partdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/partdb.js b/public/partdb.js index e6974cd..1ab16fe 100644 --- a/public/partdb.js +++ b/public/partdb.js @@ -68,8 +68,8 @@ function clear() } // clear URLs for (const field of urls) { - const a = document.getElementById('url_' + field); - a.href = null; + const span = document.getElementById('url_' + field); + span.innerHTML = span.innerText; } // clear tables for (const table of tables) {