includes/clientside/static/misc.js
changeset 304 e2cb5f1432c8
parent 227 0eca1498a77b
parent 295 f948557af068
child 326 ab66d6d1f1f4
--- 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 = '<div align="center" style="text-align: center;"> \
+                  <p>' + $lang.get('user_login_success_short') + '</p> \
+                  <p><img alt=" " src="'+scriptPath+'/images/good.gif" /></p> \
+                </div>';
+            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;
 }