# HG changeset patch # User Dan # Date 1195700209 18000 # Node ID db8d5111ad20442f029809b7372e4287c9ef0f25 # Parent ebcc138fe4e62f70b8f7d979bee4db88df70b2d7 AJAX login box now briefly shows the message "success" when a login is successful diff -r ebcc138fe4e6 -r db8d5111ad20 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 = '
\ +

Success.

\ +

\ +
'; + ajax_auth_mb_cache.updateContent(success_win); if ( typeof(ajax_auth_prompt_cache) == 'function' ) { ajax_auth_prompt_cache(response.key);