r107312 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107311‎ | r107312 | r107313 >
Date:00:19, 26 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
More JS fixes
Modified paths:
  • /trunk/extensions/Translate/resources/ext.translate.quickedit.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/resources/ext.translate.quickedit.js
@@ -21,6 +21,7 @@
2222
2323 (function( $ ) {
2424 "use strict";
 25+ var mw = mediaWiki;
2526
2627 var translate = {
2728 dialogwidth: false,
@@ -78,7 +79,7 @@
7980 }
8081 },
8182
82 - registerFeatures: function( dialog, form, page ) {
 83+ registerFeatures: function( dialog, form, page, group ) {
8384 // Enable the collapsible element
8485 var $identical = $( '.mw-identical-title' );
8586 if ( $.isFunction( $identical.makeCollapsible ) ) {
@@ -124,7 +125,7 @@
125126 } );
126127 } );
127128
128 - textarea.keyup( function() { checker.setup() } );
 129+ textarea.keyup( function() { checker.setup(); } );
129130 }
130131 },
131132
@@ -149,7 +150,7 @@
150151 dialog.load( url, false, function() {
151152 var form = $( '#' + id + ' form' );
152153
153 - mw.translate.registerFeatures( dialog, form, page );
 154+ mw.translate.registerFeatures( dialog, form, page, group );
154155 mw.translate.addAccessKeys( form );
155156 form.hide().slideDown();
156157

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107305Rework ext.translate.quickedit.js from global functions into mw.translate...nikerabbit23:19, 25 December 2011

Status & tagging log