Default for room renaming

This commit is contained in:
Stranck 2024-01-08 23:07:59 +01:00
parent fd3b0e727c
commit c7159cf3b4
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ function confirmAction (intent, sender) {
intentEditPanel.style.display = 'block'; intentEditPanel.style.display = 'block';
intentEdit.setAttribute('required', true) intentEdit.setAttribute('required', true)
intentFormAction.setAttribute('method', 'POST') intentFormAction.setAttribute('method', 'POST')
document.getElementById("intentRename").value = sender.parentElement.parentElement.querySelector("span").innerText;
break break
case 'unconfirm': case 'unconfirm':
break break

View File

@ -54,7 +54,7 @@
<form method="POST" action="/manage/room/rename"> <form method="POST" action="/manage/room/rename">
<label for="name"></label> <label for="name"></label>
<input type="text" name="name" required minlength="4" maxlength="64" /> <input type="text" name="name" required minlength="4" maxlength="64" value="{{order.ans('room_name')}}"/>
<input type="submit" value="Rename room" /> <input type="submit" value="Rename room" />
</form> </form>
</article> </article>