r79772 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79771‎ | r79772 | r79773 >
Date:23:16, 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
@@ -222,7 +222,7 @@
223223 }
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
226 - && $.inArray( $( this ).attr( 'class' ), [ 'notranslate', 'printfooter' ] ) == -1
 226+ && !$( this ).hasClass( 'notranslate' ) && !$( this ).hasClass( 'printfooter' )
227227 && $( this ).text().length > 0 ) {
228228
229229 translateElement( $( this ), sourceLang, targetLang );

Past revisions this follows-up on

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

Status & tagging log