summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-03 22:27:14 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-03 22:27:14 -0700
commit9c5b68723f6c82054133b50e7e1024183b9fbf9c (patch)
tree77e9a1ed92aec2f7078651fd95a898226de6facd /src
parent073ae9e3b22b6e37990e276ff1d5206edbc23551 (diff)
downloadDotNetOpenAuth-9c5b68723f6c82054133b50e7e1024183b9fbf9c.zip
DotNetOpenAuth-9c5b68723f6c82054133b50e7e1024183b9fbf9c.tar.gz
DotNetOpenAuth-9c5b68723f6c82054133b50e7e1024183b9fbf9c.tar.bz2
Undid modal dialog popup for ajax control. It was causing issues since self.popup wouldn't be assigned until after the dialog closed.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
index ee9bcdc..7d3cbfc 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
@@ -528,13 +528,9 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url
height = 500;
}
- if (window.showModalDialog) {
- self.popup = window.showModalDialog(self.setup, 'opLogin', 'status:0;resizable:1;scroll:1;center:1;dialogWidth:' + width + 'px; dialogHeight:' + height + 'px');
- } else {
- var left = (screen.width - width) / 2;
- var top = (screen.height - height) / 2;
- self.popup = window.open(self.setup, 'opLogin', 'status=0,toolbar=0,location=1,resizable=1,scrollbars=1,left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
- }
+ var left = (screen.width - width) / 2;
+ var top = (screen.height - height) / 2;
+ self.popup = window.open(self.setup, 'opLogin', 'status=0,toolbar=0,location=1,resizable=1,scrollbars=1,left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
// If the OP supports the UI extension it MAY close its own window
// for a negative assertion. We must be able to recover from that scenario.