Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -62,14 +62,11 @@ |
63 | 63 | * Reset the font with old configuration |
64 | 64 | */ |
65 | 65 | reset: function() { |
66 | | - $( 'body' ).css( { |
| 66 | + $( 'body, input, select, textarea' ).css( { |
67 | 67 | fontFamily: mw.webfonts.oldconfig.fontFamily, |
68 | 68 | fontSize: mw.webfonts.oldconfig.fontSize |
69 | 69 | }); |
70 | 70 | |
71 | | - // font-family of <input>, <select> and <textarea> must be reset explicitly. |
72 | | - $( 'input, select, textarea' ).css( 'font-family', mw.webfonts.oldconfig.fontFamily ); |
73 | | - |
74 | 71 | // Reset the fonts applied for tags with lang attribute. |
75 | 72 | $( '.webfonts-lang-attr' ).css( 'font-family', '' ).removeClass( 'webfonts-lang-attr' ); |
76 | 73 | |
— | — | @@ -182,10 +179,10 @@ |
183 | 180 | var ua = navigator.userAgent; |
184 | 181 | if ( /MSIE 6/i.test( ua ) ) { |
185 | 182 | // IE6 doesn't have font fallbacks |
186 | | - return; |
| 183 | + return false; |
187 | 184 | } else if ( /MSIE 8/i.test( ua ) && /Windows NT 5.1/i.test( ua ) ) { |
188 | 185 | // IE8 on XP has occasional gibberish bug |
189 | | - return; |
| 186 | + return false; |
190 | 187 | } |
191 | 188 | } |
192 | 189 | |
— | — | @@ -236,6 +233,7 @@ |
237 | 234 | // for the main language, because there may be lang attr based font embedding. |
238 | 235 | mw.webfonts.buildMenu( fonts ); |
239 | 236 | } |
| 237 | + return true; |
240 | 238 | }, |
241 | 239 | |
242 | 240 | /** |