mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix POST redirect form submit (#5336)
The `submit()` method cannot be invoked on forms without a submit button. This changes it to call the method via the JS prototype, which can be seen as a workaround. Checked this in Firefox and Chrome. Fixes #5335.
This commit is contained in:
parent
b443acd43b
commit
eaeb7021d5
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@
|
|||
</form>
|
||||
}
|
||||
<script type="text/javascript">
|
||||
document.forms.item(0).submit();
|
||||
HTMLFormElement.prototype.submit.call(document.forms.item(0));
|
||||
</script>
|
||||
<partial name="LayoutFoot" />
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue