# HG changeset patch
# User Dan
# Date 1191792145 14400
# Node ID 1bc7e849a264616c37d7ee135d4a29f8b20d96d5
# Parent 1465f48faba0629a3b19cebd844353304ae436ec
More minor Ux improvements
diff -r 1465f48faba0 -r 1bc7e849a264 includes/clientside/static/misc.js
--- a/includes/clientside/static/misc.js Sun Oct 07 16:56:14 2007 -0400
+++ b/includes/clientside/static/misc.js Sun Oct 07 17:22:25 2007 -0400
@@ -337,9 +337,11 @@
response = parseJSON(response);
var level = ajax_auth_level_cache;
var form_html = '';
+ var shown_error = false;
if ( ajax_auth_error_string )
{
- form_html += '' + ajax_auth_error_string + '
';
+ shown_error = true;
+ form_html += '
' + ajax_auth_error_string + '
';
ajax_auth_error_string = false;
}
else if ( level > USER_LEVEL_MEMBER )
@@ -356,7 +358,7 @@
\
\
\
- Trouble logging in? Try the full login form. ';
+ Trouble logging in? Try the full login form. ';
if ( level <= USER_LEVEL_MEMBER )
{
form_html += ' \
@@ -383,6 +385,19 @@
}
$('ajaxlogin_pass').object.onblur = function(e) { if ( !shift ) $('messageBox').object.nextSibling.firstChild.focus(); };
$('ajaxlogin_pass').object.onkeypress = function(e) { if ( !e && IE ) return true; if ( e.keyCode == 13 ) $('messageBox').object.nextSibling.firstChild.click(); };
+ /*
+ ## This causes the background image to disappear under Fx 2
+ if ( shown_error )
+ {
+ // fade to #FFF4F4
+ var fader = new Spry.Effect.Highlight('ajax_auth_error', {duration: 1000, from: '#FFF4F4', to: '#805600', restoreColor: '#805600', finish: function()
+ {
+ var fader = new Spry.Effect.Highlight('ajax_auth_error', {duration: 3000, from: '#805600', to: '#FFF4F4', restoreColor: '#FFF4F4'});
+ fader.start();
+ }});
+ fader.start();
+ }
+ */
}
});
}
|