From 95cfa9ae52b4e09e6a623e5135b10bc2fb0fa085 Mon Sep 17 00:00:00 2001 From: Choom Date: Mon, 9 Jan 2023 23:29:31 -0300 Subject: Arreglando borrado --- static/js/weabotxt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js/weabotxt.js') diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js index 93850d9..ea060f8 100644 --- a/static/js/weabotxt.js +++ b/static/js/weabotxt.js @@ -108,13 +108,13 @@ function previewPost(e) { e.target.className = 'active'; preview.textContent = 'Cargando...'; - if (!thread) { // new thread + if (thread == '0') { // new thread document.getElementById('tr_preview').removeAttribute('style'); } else { preview.removeAttribute('style'); } } else { // hide it - if (!thread) { // new thread + if (thread == '0') { // new thread document.getElementById('tr_preview').style.display = 'none'; } else { preview.style.display = 'none'; -- cgit v1.2.1-18-gbd029