Exclude does not apply if the editfont preference is default

'editfont' == 'default' means 'Browser default' font setting. We can
apply webfonts there.

Change-Id: Iff522e0016d8284dc785580e6eb3dd2967c58289
This commit is contained in:
Santhosh Thottingal
2013-05-29 15:23:34 +05:30
parent b9462e709f
commit 66e1fab8a8

View File

@@ -70,12 +70,11 @@
return font; return font;
}, },
exclude: ( function () { exclude: ( function () {
if ( mw.user.options.get( 'editfont' ) ) { if ( mw.user.options.get( 'editfont' ) !== 'default' ) {
// Exclude textboxes from webfonts if user has edit area font option // Exclude textboxes from webfonts if user has edit area font option
// set using 'Preferences' page // set using 'Preferences' page
return 'textarea'; return 'textarea';
} }
return $.fn.webfonts.defaults.exclude; return $.fn.webfonts.defaults.exclude;
}() ) }() )
} ); } );