r107373 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107372‎ | r107373 | r107374 >
Date:09:22, 27 December 2011
Author:amire80
Status:ok
Tags:
Comment:
Made the state change event happen only once - found and fixed by nikerabbit.
Modified paths:
  • /trunk/extensions/Translate/resources/ext.translate.special.translate.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/resources/ext.translate.special.translate.js
@@ -44,14 +44,13 @@
4545 var tobe = event.target.value;
4646
4747 $submit.val( mw.msg( "translate-workflow-set-do" ) );
 48+ $submit.unbind( "click" );
4849 if ( current !== tobe ) {
4950 $submit.css( "visibility", "visible" );
5051 $submit.attr( "disabled", false );
5152 $submit.click( { newstate: tobe }, submitFunction );
5253 } else {
5354 $submit.attr( "disabled", "disabled" );
54 - $submit.unbind( "click" );
5555 }
56 -
5756 } );
5857 } );

Status & tagging log