remotes/1693045480750635534/spooky-22
Aevann1 2021-09-19 14:55:24 +02:00
parent d19694a9dd
commit 9f2a09b892
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@
<input type="hidden" name="formkey" value="{{v.formkey}}" />
<label for="reason">Public ban reason (optional)</label>
<textarea name="reason" form="banModalForm" class="form-control" id="reason" aria-label="With textarea" placeholder="Enter reason"></textarea>
<label for="ban-modal-link">Public ban reason (optional)</label>
<textarea name="reason" form="banModalForm" class="form-control" id="ban-modal-link" aria-label="With textarea" placeholder="Enter reason"></textarea>
<label for="days" class="mt-3">Duration days</label>
<input type="number" name="days" id="days" class="form-control" placeholder="leave blank for permanent" />

View File

@ -450,7 +450,7 @@
const banModal = function(link, id, name) {
document.getElementById("banModalTitle").innerHTML = `Ban @${name}`;
document.getElementById("reason").value = link;
document.getElementById("ban-modal-link").value = link;
document.getElementById("banUserButton").innerHTML = `Ban @${name}`;
document.getElementById("banUserButton").onclick = function() {