witten
/
luminotes
Archived
1
0
Fork 0

Prevent progress bar from flashing in Firefox everytime you press a key within an editor.

This commit is contained in:
Dan Helfman 2007-10-31 21:03:06 +00:00
parent bd95d98cfc
commit 8c498e2c0b
1 changed files with 6 additions and 0 deletions

View File

@ -653,6 +653,9 @@ Wiki.prototype.make_image_button = function ( name, filename_prefix, handle_mous
Wiki.prototype.down_image_button = function ( name ) {
var button = getElement( name );
if ( /_down/.test( button.src ) )
return;
if ( /_hover/.test( button.src ) )
button.src = IMAGE_DIR + button.filename_prefix + "_button_down_hover.png";
else
@ -662,6 +665,9 @@ Wiki.prototype.down_image_button = function ( name ) {
Wiki.prototype.up_image_button = function ( name ) {
var button = getElement( name );
if ( !/_down/.test( button.src ) )
return;
if ( /_hover/.test( button.src ) )
button.src = IMAGE_DIR + button.filename_prefix + "_button_hover.png";
else