forked from rDrama/rDrama
untick "notify followers" checkbox when "ghost thread" checkbox is ticked
parent
a95d378cf6
commit
170959c071
|
@ -153,8 +153,8 @@ function autoSuggestTitle() {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function draft(t) {
|
function ghost_toggle(t) {
|
||||||
const followers = document.getElementById("followers")
|
const followers = document.getElementById("post-notify")
|
||||||
if (t.checked == true) {
|
if (t.checked == true) {
|
||||||
followers.checked = false;
|
followers.checked = false;
|
||||||
followers.disabled = true;
|
followers.disabled = true;
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
<label class="custom-control-label" for="post-nsfw">+18</label>
|
<label class="custom-control-label" for="post-nsfw">+18</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="custom-control custom-checkbox">
|
<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>
|
<label class="custom-control-label" for="post-private">Draft</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
<div class="custom-control custom-checkbox mb-5">
|
<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>
|
<label class="custom-control-label" for="post-ghost">Ghost thread</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue