Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -138,10 +138,10 @@ |
139 | 139 | fontFormats.push( "\t\turl('" + base + fontconfig.ttf + versionSuffix + "') format('truetype')" ); |
140 | 140 | } |
141 | 141 | |
142 | | - styleString += fontFormats.join() + ";\n" |
| 142 | + styleString += fontFormats.join() + ";\n"; |
143 | 143 | styleString += "\tfont-weight: normal;\n}\n</style>\n"; |
144 | 144 | |
145 | | - //inject the css to the head of the page. |
| 145 | + //inject the css to the head of the page. |
146 | 146 | $( styleString ).appendTo( 'head' ); |
147 | 147 | }, |
148 | 148 | |
— | — | @@ -231,6 +231,7 @@ |
232 | 232 | loadFontsForLangAttr: function() { |
233 | 233 | var languages = mw.webfonts.config.languages; |
234 | 234 | var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )]; |
| 235 | + var fontFamily = false; |
235 | 236 | // If there are tags with lang attribute, |
236 | 237 | $( 'body' ).find( '*[lang]' ).each( function( index ) { |
237 | 238 | // If the lang attribute value is same as one of |
— | — | @@ -303,7 +304,7 @@ |
304 | 305 | return null; |
305 | 306 | } |
306 | 307 | |
307 | | - var $resetLink = $( '<input type="radio" name="font"/>' ) |
| 308 | + var $resetLink = $( '<input type="radio" name="font" />' ) |
308 | 309 | .attr( 'value', 'webfont-none' ) |
309 | 310 | .attr( 'id', 'webfont-none' ) |
310 | 311 | .click( function( e ) { |
— | — | @@ -334,7 +335,7 @@ |
335 | 336 | */ |
336 | 337 | buildMenu: function(config) { |
337 | 338 | var $menuItemsDiv = mw.webfonts.buildMenuItems( config ); |
338 | | - if( $menuItemsDiv == null ) { |
| 339 | + if( $menuItemsDiv === null ) { |
339 | 340 | return; |
340 | 341 | } |
341 | 342 | var $menu = $( '<div>' ) |