From 170959c071d302d4d4cb181739fc488d37054a2c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Nov 2022 21:26:38 +0200 Subject: [PATCH] untick "notify followers" checkbox when "ghost thread" checkbox is ticked --- files/assets/js/submit.js | 4 ++-- files/templates/submit.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/assets/js/submit.js b/files/assets/js/submit.js index b305fc17e..7407b02ad 100644 --- a/files/assets/js/submit.js +++ b/files/assets/js/submit.js @@ -153,8 +153,8 @@ function autoSuggestTitle() { }; -function draft(t) { - const followers = document.getElementById("followers") +function ghost_toggle(t) { + const followers = document.getElementById("post-notify") if (t.checked == true) { followers.checked = false; followers.disabled = true; diff --git a/files/templates/submit.html b/files/templates/submit.html index b7d8ec306..6cec50ed7 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -104,7 +104,7 @@
- +
@@ -116,7 +116,7 @@ {%- endif %}
- +