Index: trunk/extensions/LiveTranslate/includes/ext.livetranslate.js |
— | — | @@ -222,7 +222,7 @@ |
223 | 223 | } |
224 | 224 | // If it's an html element, check to see if it should be ignored, and if not, apply function again. |
225 | 225 | 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' ) |
227 | 227 | && $( this ).text().length > 0 ) { |
228 | 228 | |
229 | 229 | translateElement( $( this ), sourceLang, targetLang ); |