blob: 1ba24709799dc3a4760635f320ca76f49cf5aac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
( function () {
'use strict';
function buttoner( $input ) {
if ( $input.val ) {
$( 'input[type=submit]' ).prop( 'disabled', false );
} else {
$( 'input[type=submit]' ).prop( 'disabled', true );
}
}
$( function () {
var $input = $( '#mw-translate-up-local-input' );
$input.on( 'change', function () {
buttoner( $input );
} );
buttoner( $input );
} );
}() );
|