]> spindle.queued.net Git - midori/commitdiff
Use a form for the Try Again button in error pages
authorChristian Dywan <christian@twotoasts.de>
Fri, 20 May 2011 20:04:11 +0000 (22:04 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 20 May 2011 20:04:11 +0000 (22:04 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/784931
data/error.html
midori/midori-view.c

index fd63f2b6bdd3ba442e9db4ebc1df2c58891abbbb..56ca6032bf51a9bd725b90686a62784ee8a1ffd2 100644 (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>
index a77f2fda4b2b2b2cdcf1c6b64de99916cf8dc7e8..331e7bd4a12276f94e56b741d888f3bd5a57e24f 100644 (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);