Prevent progress bar from flashing in Firefox everytime you press a key within an editor.
This commit is contained in:
parent
bd95d98cfc
commit
8c498e2c0b
|
@ -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
|
||||
|
|
Reference in New Issue