blob: d916fcc4d1f0acb1c64e4474df7ecce595c47ffa (
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 );
}
}
$( document ).ready( function ( ) {
var $input = $( '#mw-translate-up-local-input' );
$input.on( 'change', function () {
buttoner( $input );
} );
buttoner( $input );
} );
}( jQuery ) );
|