зеркало из https://github.com/mozilla/gecko-dev.git
Bug 237244 use location.reload for "Try Again" on error pages instead of
assigning to location.href r+sr=bz
This commit is contained in:
Родитель
8cd2a2ac7d
Коммит
d0e111d772
|
@ -32,8 +32,10 @@ function getDescription()
|
|||
|
||||
function retryThis()
|
||||
{
|
||||
var duffUrl = getDuffUrl();
|
||||
document.location.href = duffUrl;
|
||||
// Session history has the URL of the page that failed
|
||||
// to load, not the one of the error page. So, just call
|
||||
// reload(), which will also repost POST data correctly.
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function fillIn()
|
||||
|
|
|
@ -160,8 +160,7 @@
|
|||
<p>&netOffline.longDesc;</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p><a id="retry" href="#" onclick="retryThis();">&retry.label;</a></p>
|
||||
<p><input type="button" value="&retry.label;" id="retry" onclick="retryThis();"/></p>
|
||||
<!--
|
||||
- Note: It is important to run fillIn using this way, instead of using
|
||||
- an onload handler. This is because error pages are loaded as
|
||||
|
|
Загрузка…
Ссылка в новой задаче