Index: trunk/extensions/Translate/resources/ext.translate.quickedit.js |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | |
23 | 23 | (function( $ ) { |
24 | 24 | "use strict"; |
| 25 | + var mw = mediaWiki; |
25 | 26 | |
26 | 27 | var translate = { |
27 | 28 | dialogwidth: false, |
— | — | @@ -78,7 +79,7 @@ |
79 | 80 | } |
80 | 81 | }, |
81 | 82 | |
82 | | - registerFeatures: function( dialog, form, page ) { |
| 83 | + registerFeatures: function( dialog, form, page, group ) { |
83 | 84 | // Enable the collapsible element |
84 | 85 | var $identical = $( '.mw-identical-title' ); |
85 | 86 | if ( $.isFunction( $identical.makeCollapsible ) ) { |
— | — | @@ -124,7 +125,7 @@ |
125 | 126 | } ); |
126 | 127 | } ); |
127 | 128 | |
128 | | - textarea.keyup( function() { checker.setup() } ); |
| 129 | + textarea.keyup( function() { checker.setup(); } ); |
129 | 130 | } |
130 | 131 | }, |
131 | 132 | |
— | — | @@ -149,7 +150,7 @@ |
150 | 151 | dialog.load( url, false, function() { |
151 | 152 | var form = $( '#' + id + ' form' ); |
152 | 153 | |
153 | | - mw.translate.registerFeatures( dialog, form, page ); |
| 154 | + mw.translate.registerFeatures( dialog, form, page, group ); |
154 | 155 | mw.translate.addAccessKeys( form ); |
155 | 156 | form.hide().slideDown(); |
156 | 157 | |