Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -85,14 +85,13 @@ |
86 | 86 | |
87 | 87 | var textarea = form.find( ".mw-translate-edit-area" ); |
88 | 88 | textarea.focus(); |
89 | | - var checks = form.find( ".mw-translate-messagechecks" ); |
90 | | - if ( checks ) { |
91 | 89 | |
| 90 | + if ( form.find( ".mw-translate-messagechecks" ) ) { |
92 | 91 | var checker = new MessageCheckUpdater( function() { |
93 | 92 | var url = wgScript + "?title=Special:Translate/editpage&suggestions=checks&page=$1&loadgroup=$2"; |
94 | 93 | url = url.replace( "$1", page ).replace( "$2", group ); |
95 | 94 | jQuery.post( url, { translation: textarea.val() } , function(mydata) { |
96 | | - checks.html( mydata ); |
| 95 | + form.find( ".mw-translate-messagechecks" ).replaceWith( mydata ); |
97 | 96 | }); |
98 | 97 | }); |
99 | 98 | |