diff -r dc08c70ca550 -r e2cb5f1432c8 includes/clientside/static/misc.js --- a/includes/clientside/static/misc.js Sun Dec 02 15:27:21 2007 -0500 +++ b/includes/clientside/static/misc.js Sun Dec 02 16:00:10 2007 -0500 @@ -392,6 +392,10 @@ function ajaxAuthLoginInnerSetup() { + // let's hope this gets the image cached + var _ = new Image(32, 32); + _.src = scriptPath + "/images/good.gif"; + ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() { if ( ajax.readyState == 4 ) { @@ -619,6 +623,11 @@ switch(response.result) { case 'success': + var success_win = '
\ +

' + $lang.get('user_login_success_short') + '

\ +

\ +
'; + ajax_auth_mb_cache.updateContent(success_win); if ( typeof(ajax_auth_prompt_cache) == 'function' ) { ajax_auth_prompt_cache(response.key); @@ -758,6 +767,6 @@ function validateEmail(email) { - return ( email.match(/^(?:[\w\d]+\.?)+@((?:(?:[\w\d]\-?)+\.)+\w{2,4}|localhost)$/) ) ? true : false; + return ( email.match(/^(?:[\w\d_-]+\.?)+@((?:(?:[\w\d_-]\-?)+\.)+\w{2,4}|localhost)$/) ) ? true : false; }