forked from rDrama/rDrama
1
0
Fork 0

add CTRL+ENTER support in /admin/orgy

master
Aevann 2023-08-16 22:18:05 +03:00
parent ed3ab121d0
commit a2215787db
2 changed files with 6 additions and 1 deletions

View File

@ -112,6 +112,11 @@ if (!location.pathname.endsWith('/submit'))
return
}
if (location.pathname == '/admin/orgy') {
document.getElementById('start-orgy').click();
return
}
const submitButtonDOMs = formDOM.querySelectorAll('input[type=submit], .btn-primary');
if (submitButtonDOMs.length === 0)
throw new TypeError("I am unable to find the submit button :(. Contact the head custodian immediately.")

View File

@ -32,7 +32,7 @@
</div>
<input hidden name="formkey" value="{{v|formkey}}">
<div class="d-flex mt-2">
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Start Orgy">
<input id="start-orgy" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Start Orgy">
</div>
</form>
{%else%}