Index: trunk/extensions/Translate/resources/ext.translate.special.translate.js |
— | — | @@ -44,14 +44,13 @@ |
45 | 45 | var tobe = event.target.value; |
46 | 46 | |
47 | 47 | $submit.val( mw.msg( "translate-workflow-set-do" ) ); |
| 48 | + $submit.unbind( "click" ); |
48 | 49 | if ( current !== tobe ) { |
49 | 50 | $submit.css( "visibility", "visible" ); |
50 | 51 | $submit.attr( "disabled", false ); |
51 | 52 | $submit.click( { newstate: tobe }, submitFunction ); |
52 | 53 | } else { |
53 | 54 | $submit.attr( "disabled", "disabled" ); |
54 | | - $submit.unbind( "click" ); |
55 | 55 | } |
56 | | - |
57 | 56 | } ); |
58 | 57 | } ); |