untick "notify followers" checkbox when "ghost thread" checkbox is ticked

master
Aevann1 2022-11-09 21:26:38 +02:00
parent a95d378cf6
commit 170959c071
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -104,7 +104,7 @@
<label class="custom-control-label" for="post-nsfw">+18</label>
</div>
<div class="custom-control custom-checkbox">
<input onchange='draft(this);' autocomplete="off" type="checkbox" class="custom-control-input" id="post-private" name="private" onchange="savetext()">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="post-private" name="private" onchange="savetext()">
<label class="custom-control-label" for="post-private">Draft</label>
</div>
@ -116,7 +116,7 @@
{%- endif %}
<div class="custom-control custom-checkbox mb-5">
<input onchange='draft(this);' autocomplete="off" type="checkbox" class="custom-control-input" id="post-ghost" name="ghost">
<input onchange='ghost_toggle(this)' autocomplete="off" type="checkbox" class="custom-control-input" id="post-ghost" name="ghost">
<label class="custom-control-label" for="post-ghost">Ghost thread</label>
</div>
</div>