r88031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88030‎ | r88031 | r88032 >
Date:08:12, 14 May 2011
Author:santhosh
Status:deferred
Tags:
Comment:
a) Disabled English webfonts since it is required only for testing purpose
b) Reset the buttons. drop downs when reset link is pressed
Modified paths:
  • /trunk/extensions/WebFonts/WebFonts.config.php (modified) (history)
  • /trunk/extensions/WebFonts/js/webfonts.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WebFonts/WebFonts.config.php
@@ -241,7 +241,7 @@
242242 ),
243243
244244 'languages' => array(
245 - 'en' => array( 'RufScript', 'Perizia', 'Ubuntu' ),
 245+ //'en' => array( 'RufScript', 'Perizia', 'Ubuntu' ),
246246 'ml' => array( 'Meera', 'Rachana' , 'Dyuthi', 'RaghuMalayalam'),
247247 'or' => array( 'Lohit Oriya'),
248248 'ta' => array( 'Lohit Tamil'),
Index: trunk/extensions/WebFonts/js/webfonts.js
@@ -75,6 +75,10 @@
7676 */
7777 reset: function(){
7878 $("body").css('font-family', $.webfonts.oldconfig["font-family"]);
 79+ //we need to reset the fonts of Input and Select explicitly.
 80+ $("input").css('font-family', $.webfonts.oldconfig["font-family"]);
 81+ $("select").css('font-family', $.webfonts.oldconfig["font-family"]);
 82+ //reset the font size from old configuration
7983 $("body").css('font-size', $.webfonts.oldconfig["font-size"]);
8084 //remove the cookie
8185 $.cookie( 'webfonts-font', 'none' );

Status & tagging log