Permalink
Browse files

OpenIdTextBox now honors Popup == PopupBehavior.Never.

Fixes #126.
  • Loading branch information...
AArnott committed Sep 13, 2009
1 parent 35275b2 commit c32f95a62f3ad583a58763022e1a2578ecdb9ee5
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
@@ -1221,7 +1221,16 @@ public class OpenIdTextBox : CompositeControl, IEditableTextControl, ITextContro
private bool IsPopupAppropriate() {
Contract.Requires(this.Request != null);
return this.Popup == PopupBehavior.Always || this.Request.Provider.IsExtensionSupported<UIRequest>();
switch (this.Popup) {
case PopupBehavior.Never:
return false;
case PopupBehavior.Always:
return true;
case PopupBehavior.IfProviderSupported:
return this.Request.Provider.IsExtensionSupported<UIRequest>();
default:
throw new InternalErrorException();
}
}
/// <summary>

0 comments on commit c32f95a

Please sign in to comment.