mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Remove empty box on post redirect (#1995)
In case JS is enabled the post redirect page showed an empty box. This box contains the explanation text for the non-JS text. This changes it to only show the modal box in casee JS is disabled, because the page – even though only visible briefly – looks weird for users with JS enabled.
This commit is contained in:
parent
b430afe3e1
commit
933e0c30bf
1 changed files with 21 additions and 19 deletions
|
@ -17,25 +17,27 @@
|
|||
<title>Post Redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<form method="post" id="postform" action="@action" class="modal-body text-center my-3">
|
||||
@Html.AntiForgeryToken()
|
||||
@foreach (var o in Model.Parameters)
|
||||
{
|
||||
<input type="hidden" name="@o.Key" value="@o.Value"/>
|
||||
}
|
||||
<noscript>
|
||||
<p>
|
||||
This redirection page is supposed to be submitted automatically.
|
||||
<br>
|
||||
Since you have not enabled JavaScript, please submit manually.
|
||||
</p>
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</noscript>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" id="postform" action="@action">
|
||||
@Html.AntiForgeryToken()
|
||||
@foreach (var o in Model.Parameters)
|
||||
{
|
||||
<input type="hidden" name="@o.Key" value="@o.Value"/>
|
||||
}
|
||||
<noscript>
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body text-center my-3">
|
||||
<p>
|
||||
This redirection page is supposed to be submitted automatically.
|
||||
<br>
|
||||
Since you have not enabled JavaScript, please submit manually.
|
||||
</p>
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.forms.item(0).submit();
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue