r52464 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52463‎ | r52464 | r52465 >
Date:15:00, 26 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Some fixed to r52463
Modified paths:
  • /trunk/extensions/Translate/utils/JsSelectToInput.js (modified) (history)
  • /trunk/extensions/Translate/utils/UserToggles.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/UserToggles.php
@@ -28,7 +28,7 @@
2929
3030 public static function translationAssistLanguages( $user, &$preferences ) {
3131 $select = self::languageSelector();
32 - $select->setTargetId( 'mw-input-translate-edit-lang' );
 32+ $select->setTargetId( 'mw-input-translate-editlangs' );
3333
3434
3535 $languages = Language::getLanguageNames( false );
Index: trunk/extensions/Translate/utils/JsSelectToInput.js
@@ -4,6 +4,8 @@
55 if(!target || !select) return
66 var atxt = select.options[select.selectedIndex].value;
77 if(!atxt) return
 8+ /* Ugly hack */
 9+ target.value = target.value.replace(/default/, '' );
810 if(target.value.replace(/[\s\t\n]/ig,'') != '') atxt = ', ' + atxt;
911 target.value += atxt;
1012 }
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r52463User preferences to choose translation assistant languagesnikerabbit14:37, 26 June 2009

Status & tagging log