aboutsummaryrefslogtreecommitdiff
path: root/static/js/weabotxt.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/weabotxt.js')
-rw-r--r--static/js/weabotxt.js4
1 files changed, 2 insertions, 2 deletions
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';