Fix Bug 39560 - Monospace font setting overridden

* use the exclude option from jquery.webfonts

Change-Id: I5c35c848197ceae0def6cbc31249f887b962365b
This commit is contained in:
Santhosh Thottingal
2012-09-05 13:49:10 +05:30
parent bad1394c6a
commit cc1cca33d7

View File

@@ -42,7 +42,15 @@
font = null;
}
return font;
},
exclude: function() {
if ( mw.user.options.get( 'editfont' ) ) {
// Exclude textboxes from webfonts if user has edit area font option
// set using 'Preferences' page
return 'textbox';
}
return $.fn.webfonts.defaults.exclude;
} ()
} );
} );
} )( jQuery, mediaWiki, document );
} ( jQuery, mediaWiki, document ) );