diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-19 09:19:22 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-05-19 20:21:40 -0700 |
commit | 463d61b4ec09548178ae0c23e30fc9386d2f9b6f (patch) | |
tree | d4112374445b058aed39d032d4337fed3f4edd17 /src | |
parent | 126021780a426aec1ba43705c15254c42d1e71fc (diff) | |
download | DotNetOpenAuth-463d61b4ec09548178ae0c23e30fc9386d2f9b6f.zip DotNetOpenAuth-463d61b4ec09548178ae0c23e30fc9386d2f9b6f.tar.gz DotNetOpenAuth-463d61b4ec09548178ae0c23e30fc9386d2f9b6f.tar.bz2 |
OpenIdAjaxTextBox now tells the OP that it is in a popup window.
More work to do yet:
* size the window according to the UI spec IFF the OP declared support for the extension.
* dim the rest of the page when the popup is up.
* review the spec for any further work to do.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs index bb3e49b..56b1001 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs @@ -30,6 +30,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OpenId.ChannelElements; using DotNetOpenAuth.OpenId.Extensions; + using DotNetOpenAuth.OpenId.Extensions.UI; /// <summary> /// An ASP.NET control that provides a minimal text box that is OpenID-aware and uses AJAX for @@ -1265,6 +1266,9 @@ if (!openidbox.dnoi_internal.onSubmit()) {{ return false; }} // Configure each generated request. int reqIndex = 0; foreach (var req in requests) { + // Inform the OP that we'll be using a popup window. + req.AddExtension(new UIRequest()); + req.AddCallbackArguments("index", (reqIndex++).ToString(CultureInfo.InvariantCulture)); // If the ReturnToUrl was explicitly set, we'll need to reset our first parameter |