summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
index 4806ea4..65e7ffe 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
@@ -576,8 +576,10 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url
var newValue = box.value;
if (e.keyCode == 13) {
- if (box.dnoi_internal.state == 'setup') {
+ if (box.dnoi_internal.state === 'setup') {
box.dnoi_internal.loginButton.click();
+ } else if (box.dnoi_internal.postbackLoginButton) {
+ box.dnoi_internal.postbackLoginButton.click();
} else {
discover();
}