Apply webfonts to the IME selector too
It get added to DOM after DOM is ready, and does not inherit styles (by design) Change-Id: I45a982b5c1c2a39718f38e77a33b79f89e460474
This commit is contained in:
committed by
Nikerabbit
parent
2fdf4bffb3
commit
e4cefe06fd
@@ -150,6 +150,8 @@
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// apply fonts to this
|
||||||
|
imeselector.$menu.webfonts();
|
||||||
return $( '<div>' )
|
return $( '<div>' )
|
||||||
.addClass( 'uls-ime-menu-settings-item' )
|
.addClass( 'uls-ime-menu-settings-item' )
|
||||||
.append( $disableInputToolsLink, $moreSettingsLink );
|
.append( $disableInputToolsLink, $moreSettingsLink );
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
mw.webfonts.setup = function () {
|
mw.webfonts.setup = function () {
|
||||||
// Initialize webfonts
|
// Initialize webfonts
|
||||||
$( 'body' ).webfonts( {
|
$.fn.webfonts.defaults = $.extend( $.fn.webfonts.defaults, {
|
||||||
fontSelector: function ( repository, language ) {
|
fontSelector: function ( repository, language ) {
|
||||||
var font;
|
var font;
|
||||||
|
|
||||||
@@ -78,6 +78,7 @@
|
|||||||
return $.fn.webfonts.defaults.exclude;
|
return $.fn.webfonts.defaults.exclude;
|
||||||
}() )
|
}() )
|
||||||
} );
|
} );
|
||||||
|
$( 'body' ).webfonts();
|
||||||
};
|
};
|
||||||
|
|
||||||
$( document ).ready( function () {
|
$( document ).ready( function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user