--- a/includes/clientside/static/misc.js Mon Jul 02 20:33:57 2007 -0400
+++ b/includes/clientside/static/misc.js Tue Jul 03 14:07:35 2007 -0400
@@ -84,8 +84,12 @@
bdim = { 'w' : getWidth(), 'h' : getHeight() };
so = getScrollOffset();
- left = (bdim['w'] / 2) - ( dim['w'] / 2 );
- top = (bdim['h'] / 2) - ( dim['h'] / 2 ) + so;
+ var left = (bdim['w'] / 2) - ( dim['w'] / 2 );
+
+ var top = (bdim['h'] / 2);
+ top = top - ( dim['h'] / 2 );
+
+ top = top + so;
thediv.style.top = top + 'px';
thediv.style.left = left + 'px';
@@ -313,7 +317,7 @@
ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() {
if ( ajax.readyState == 4 )
{
- var response = ajax.responseText;
+ var response = String(ajax.responseText);
if ( response.substr(0,1) != '{' )
{
alert('Invalid JSON response from server: ' + response);
@@ -343,7 +347,7 @@
$('messageBox').object.nextSibling.firstChild.tabindex = '3';
$('ajaxlogin_user').object.focus();
$('ajaxlogin_pass').object.onblur = function(e) { if ( !shift ) $('messageBox').object.nextSibling.firstChild.focus(); };
- $('ajaxlogin_pass').object.onkeypress = function(e) { if ( e.keyCode == 13 ) $('messageBox').object.nextSibling.firstChild.click(); };
+ $('ajaxlogin_pass').object.onkeypress = function(e) { if ( !e && IE ) return true; if ( e.keyCode == 13 ) $('messageBox').object.nextSibling.firstChild.click(); };
}
});
}