diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-10-28 22:45:41 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-10-28 22:45:41 -0700 |
commit | 9509067bb6a06bf20e1e4595d0312eb39405b245 (patch) | |
tree | e3f786109180ab390be0123eaacf2b599cf1d299 | |
parent | 83ea563cfda2cf1f017d2896c42b8edb07d21157 (diff) | |
download | DotNetOpenAuth-9509067bb6a06bf20e1e4595d0312eb39405b245.zip DotNetOpenAuth-9509067bb6a06bf20e1e4595d0312eb39405b245.tar.gz DotNetOpenAuth-9509067bb6a06bf20e1e4595d0312eb39405b245.tar.bz2 |
Fixed bug where the openid text field's initial value doesn't trigger discovery.
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.js | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js index b67680a..7d784d4 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js @@ -606,6 +606,14 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url // Restore a previously achieved state (from pre-postback) if it is given. window.dnoa_internal.deserializePreviousAuthentication(findOrCreateHiddenField().value); + // public methods + box.setValue = function(value) { + box.value = value; + if (box.value) { + box.dnoi_internal.performDiscovery(); + } + }; + // public events // box.onStateChanged(state) } diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.js index 550156f..2707564 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.js +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.js @@ -11,7 +11,7 @@ $(function() { var ajaxbox = $('#openid_identifier')[0]; if (hint != 'infocard') { - ajaxbox.value = hint; + ajaxbox.setValue(hint); } if (document.infoCard.isSupported()) { |