r79771 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79770‎ | r79771 | r79772 >
Date:22:56, 6 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r79761
Modified paths:
  • /trunk/extensions/LiveTranslate/includes/ext.livetranslate.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/includes/ext.livetranslate.js
@@ -223,7 +223,8 @@
224224 // If it's an html element, check to see if it should be ignored, and if not, apply function again.
225225 else if ( $.inArray( $( this ).attr( 'id' ), [ 'livetranslatediv', 'siteSub', 'jump-to-nav' ] ) == -1
226226 && $.inArray( $( this ).attr( 'class' ), [ 'notranslate', 'printfooter' ] ) == -1
227 - && $( this ).text().trim().length > 0 ) {
 227+ && $( this ).text().length > 0 ) {
 228+
228229 translateElement( $( this ), sourceLang, targetLang );
229230 }
230231 } );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79761Use data instead of wholeText for IE compatibilityjeroendedauw21:36, 6 January 2011

Status & tagging log