summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs10
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs25
2 files changed, 30 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs
index d0060dc..c893c05 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs
@@ -64,6 +64,11 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// </summary>
internal const string EmbeddedLoginFailureResourceName = Util.DefaultNamespace + ".OpenId.RelyingParty.login_failure.png";
+ /// <summary>
+ /// The default value for the <see cref="DownloadYahooUILibrary"/> property.
+ /// </summary>
+ internal const bool DownloadYahooUILibraryDefault = true;
+
#region Property viewstate keys
/// <summary>
@@ -271,11 +276,6 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
private const string RetryTextDefault = "RETRY";
/// <summary>
- /// The default value for the <see cref="DownloadYahooUILibrary"/> property.
- /// </summary>
- private const bool DownloadYahooUILibraryDefault = true;
-
- /// <summary>
/// The default value for the <see cref="ShowLogOnPostBackButton"/> property.
/// </summary>
private const bool ShowLogOnPostBackButtonDefault = false;
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
index 6cdbc4f..7ffc931 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
@@ -101,6 +101,31 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
}
/// <summary>
+ /// Gets or sets a value indicating whether the Yahoo! User Interface Library (YUI)
+ /// will be downloaded in order to provide a login split button.
+ /// </summary>
+ /// <value>
+ /// <c>true</c> to use a split button; otherwise, <c>false</c> to use a standard HTML button
+ /// or a split button by downloading the YUI library yourself on the hosting web page.
+ /// </value>
+ /// <remarks>
+ /// The split button brings in about 180KB of YUI javascript dependencies.
+ /// </remarks>
+ [Bindable(true), DefaultValue(OpenIdAjaxTextBox.DownloadYahooUILibraryDefault), Category(BehaviorCategory)]
+ [Description("Whether a split button will be used for the \"log in\" when the user provides an identifier that delegates to more than one Provider.")]
+ public bool DownloadYahooUILibrary {
+ get {
+ this.EnsureChildControls();
+ return this.textBox.DownloadYahooUILibrary;
+ }
+
+ set {
+ this.EnsureChildControls();
+ this.textBox.DownloadYahooUILibrary = value;
+ }
+ }
+
+ /// <summary>
/// Gets the collection of buttons this selector should render to the browser.
/// </summary>
[PersistenceMode(PersistenceMode.InnerProperty)]