summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-22 08:19:24 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-22 08:27:10 -0700
commit8d2ce0e2b53d83dc92ac5fd758b8146245fe5e82 (patch)
treec684fc5c977e8214babce7f3c8b8b5781e1946e6 /src
parentaf4ba4223d005b239fd6f3055cf797cf354006fc (diff)
downloadDotNetOpenAuth-8d2ce0e2b53d83dc92ac5fd758b8146245fe5e82.zip
DotNetOpenAuth-8d2ce0e2b53d83dc92ac5fd758b8146245fe5e82.tar.gz
DotNetOpenAuth-8d2ce0e2b53d83dc92ac5fd758b8146245fe5e82.tar.bz2
Indirect messages no longer display "Login in progress" buttons to the user if javascript is enabled.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Messaging/Channel.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Messaging/Channel.cs b/src/DotNetOpenAuth/Messaging/Channel.cs
index 4ee627f..5998c17 100644
--- a/src/DotNetOpenAuth/Messaging/Channel.cs
+++ b/src/DotNetOpenAuth/Messaging/Channel.cs
@@ -67,7 +67,9 @@ namespace DotNetOpenAuth.Messaging {
/// </remarks>
private const string IndirectMessageFormPostFormat = @"
<html>
-<body onload=""var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; document.getElementById('openid_message').submit()"">
+<head>
+</head>
+<body onload=""document.body.style.display = 'none'; var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; document.getElementById('openid_message').submit()"">
<form id=""openid_message"" action=""{0}"" method=""post"" accept-charset=""UTF-8"" enctype=""application/x-www-form-urlencoded"" onSubmit=""var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; return true;"">
{1}
<input id=""submit_button"" type=""submit"" value=""Continue"" />