AJAX login box now briefly shows the message "success" when a login is successful
authorDan
Wed, 21 Nov 2007 21:56:49 -0500
changeset 281 db8d5111ad20
parent 277 ebcc138fe4e6
child 282 90632c09ed7e
AJAX login box now briefly shows the message "success" when a login is successful
includes/clientside/static/misc.js
--- a/includes/clientside/static/misc.js	Wed Nov 21 20:40:26 2007 -0500
+++ b/includes/clientside/static/misc.js	Wed Nov 21 21:56:49 2007 -0500
@@ -325,6 +325,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 )
       {
@@ -491,6 +495,11 @@
         switch(response.result)
         {
           case 'success':
+            var success_win = '<div align="center" style="text-align: center;"> \
+                  <p>Success.</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);