Use a form for the Try Again button in error pages

Fixes: https://bugs.launchpad.net/midori/+bug/784931
This commit is contained in:
Christian Dywan 2011-05-20 22:04:11 +02:00
parent 7f549b89a9
commit 3a8ce008ad
2 changed files with 7 additions and 4 deletions

View file

@ -68,10 +68,12 @@ description {
<h1>{title}</h1>
<p id="message">{message}</p>
<p id="description">{description}</p>
<button onclick="location.reload()">
<img src="{stock}/gtk-refresh"/>
<span>{tryagain}</span>
</button>
<form method="GET" action="{uri}">
<button type="submit" onclick="location.reload(); return false;">
<img src="{stock}/gtk-refresh"/>
<span>{tryagain}</span>
</button>
</form>
</div>
<br style="clear: both;"/>
</div>

View file

@ -1479,6 +1479,7 @@ midori_view_display_error (MidoriView* view,
"{tryagain}", try_again,
"{res}", res_root,
"{stock}", stock_root,
"{uri}", uri,
NULL);
g_free (title_escaped);
g_free (template);