Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -48,7 +48,9 @@ |
49 | 49 | |
50 | 50 | function addAccessKeys(dialog) { |
51 | 51 | jQuery( '[accesskey=a], [accesskey=s], [accesskey=d], [accesskey=h]' ).each( |
52 | | - function(i) { jQuery(this).removeAttr( 'accesskey' ); } |
| 52 | + function( i ) { |
| 53 | + jQuery(this).removeAttr( 'accesskey' ); |
| 54 | + } |
53 | 55 | ); |
54 | 56 | dialog.find( '.mw-translate-save' ).attr( 'accesskey', 'a' ).attr( 'title', '[' + tooltipAccessKeyPrefix + 'a]' ); |
55 | 57 | dialog.find( '.mw-translate-next' ).attr( 'accesskey', 's' ).attr( 'title', '[' + tooltipAccessKeyPrefix + 's]' ); |
— | — | @@ -106,12 +108,14 @@ |
107 | 109 | var checker = new MessageCheckUpdater( function() { |
108 | 110 | var url = wgScript + '?title=Special:Translate/editpage&suggestions=checks&page=$1&loadgroup=$2'; |
109 | 111 | url = url.replace( '$1', encodeURIComponent( page ) ).replace( '$2', encodeURIComponent( group ) ); |
110 | | - jQuery.post( url, { translation: textarea.val() } , function( mydata ) { |
| 112 | + jQuery.post( url, { translation: textarea.val() }, function( mydata ) { |
111 | 113 | form.find( '.mw-translate-messagechecks' ).replaceWith( mydata ); |
112 | 114 | } ); |
113 | 115 | } ); |
114 | 116 | |
115 | | - textarea.keyup( function() { checker.setup(); } ); |
| 117 | + textarea.keyup( function() { |
| 118 | + checker.setup(); |
| 119 | + } ); |
116 | 120 | } |
117 | 121 | |
118 | 122 | addAccessKeys( form ); |