summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-03 16:42:51 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-03 16:42:51 -0700
commita61c81beadff124a1408f218af99ea1e616bc6de (patch)
tree9c304d3c4d91d4d336e21c5f7b50f41a027ab94b /src
parentc97cd905804d996def21e885eab0bc8a602b31e4 (diff)
downloadDotNetOpenAuth-a61c81beadff124a1408f218af99ea1e616bc6de.zip
DotNetOpenAuth-a61c81beadff124a1408f218af99ea1e616bc6de.tar.gz
DotNetOpenAuth-a61c81beadff124a1408f218af99ea1e616bc6de.tar.bz2
Fixed OpenIdAjaxTextBox javascript bug that caused some postbacks to not fire.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
index fc6a68c..1495b8f 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
@@ -285,8 +285,9 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url
}
box.dnoi_internal.isBusy = function() {
- return box.dnoi_internal.state == 'discovering' ||
- box.dnoi_internal.authenticationRequests[box.lastDiscoveredIdentifier].busy();
+ var lastDiscovery = box.dnoi_internal.authenticationRequests[box.lastDiscoveredIdentifier];
+ return box.dnoi_internal.state == 'discovering' ||
+ (lastDiscovery && lastDiscovery.busy());
};
box.dnoi_internal.canAttemptLogin = function() {