[Xfce4-commits] <midori:master> Use a form for the Try Again button in error pages
Christian Dywan
noreply at xfce.org
Fri May 20 22:06:01 CEST 2011
Updating branch refs/heads/master
to 3a8ce008adc08dcf41664ec09097c00940cc061a (commit)
from 7f549b89a9e9939a7888d9e4ede628ef9c80df80 (commit)
commit 3a8ce008adc08dcf41664ec09097c00940cc061a
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri May 20 22:04:11 2011 +0200
Use a form for the Try Again button in error pages
Fixes: https://bugs.launchpad.net/midori/+bug/784931
data/error.html | 10 ++++++----
midori/midori-view.c | 1 +
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/data/error.html b/data/error.html
index fd63f2b..56ca603 100644
--- a/data/error.html
+++ b/data/error.html
@@ -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>
diff --git a/midori/midori-view.c b/midori/midori-view.c
index a77f2fd..331e7bd 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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);
More information about the Xfce4-commits
mailing list