forked from rDrama/rDrama
add CTRL+enter in award modal
parent
6a19105bdc
commit
c83e214320
|
@ -118,6 +118,11 @@ if (!location.pathname.endsWith('/submit'))
|
||||||
|
|
||||||
const formDOM = targetDOM.parentElement;
|
const formDOM = targetDOM.parentElement;
|
||||||
|
|
||||||
|
if (formDOM.id == 'note_section') {
|
||||||
|
document.getElementById('giveaward').click();
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const submitButtonDOMs = formDOM.querySelectorAll('input[type=submit], .btn-primary');
|
const submitButtonDOMs = formDOM.querySelectorAll('input[type=submit], .btn-primary');
|
||||||
if(submitButtonDOMs.length === 0)
|
if(submitButtonDOMs.length === 0)
|
||||||
throw new TypeError("I am unable to find the submit button :(. Contact the head custodian immediately.")
|
throw new TypeError("I am unable to find the submit button :(. Contact the head custodian immediately.")
|
||||||
|
|
Loading…
Reference in New Issue