Merge "Get the saved font using the fontSelector defined in mw.webfonts.setup"

This commit is contained in:
jenkins-bot
2013-05-27 11:05:45 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 5 deletions

View File

@@ -358,7 +358,8 @@
// Remove all current fonts // Remove all current fonts
$fontSelector.find( 'option' ).remove(); $fontSelector.find( 'option' ).remove();
savedFont = mw.webfonts.preferences.getFont( this.uiLanguage ); // Get the saved font using the fontSelector defined in mw.webfonts.setup
savedFont = this.$webfonts.getFont( language );
$.each( fonts, function ( key, font ) { $.each( fonts, function ( key, font ) {
var $fontOption; var $fontOption;

View File

@@ -62,10 +62,6 @@
font = repository.defaultFont( language ); font = repository.defaultFont( language );
} }
if ( font === 'system' ) {
font = null;
}
return font; return font;
}, },
exclude: ( function () { exclude: ( function () {