forked from MarseyWorld/MarseyWorld
add CTRL+ENTER support in /admin/orgy
parent
ed3ab121d0
commit
a2215787db
|
@ -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.")
|
||||
|
|
|
@ -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%}
|
||||
|
|
Loading…
Reference in New Issue