From cfc66213f1b7b3c6ea605e7da828e53e9ef69949 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sun, 28 Apr 2013 23:42:47 +0300 Subject: [PATCH] Cleanup for jslint and coding conventions Change-Id: I6884759d9622220721840f44220648dce7838ff6 --- resources/js/ext.uls.displaysettings.js | 26 ++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/resources/js/ext.uls.displaysettings.js b/resources/js/ext.uls.displaysettings.js index fab120f3..661cf1e0 100644 --- a/resources/js/ext.uls.displaysettings.js +++ b/resources/js/ext.uls.displaysettings.js @@ -314,7 +314,8 @@ * @param target String 'ui' or 'content' */ prepareFontSelector: function ( target ) { - var language, fonts, $fontSelector, savedFont, $systemFont, $fontLabel, $fontsSection; + var language, fonts, $fontSelector, savedFont, + $systemFont, $fontLabel, $fontsSection; // Get the language code from the right property - // uiLanguage or contentLanguage @@ -347,8 +348,10 @@ savedFont = mw.webfonts.preferences.getFont( this.uiLanguage ); $.each( fonts, function ( key, font ) { + var $fontOption; + if ( font !== 'system' ) { - var $fontOption = $( '