Revert "Simplify by using native JavaScript instead of jQuery"

This reverts commit 0fbdbc2c41.

Bug: T203750
Change-Id: I1bca27b2087f6fc1bfad153f17f4650c52786a7f
This commit is contained in:
Amire80
2018-09-07 08:13:20 +00:00
committed by jenkins-bot
parent 445087e5fe
commit 635cada69b
4 changed files with 23 additions and 15 deletions

View File

@@ -40,9 +40,9 @@
$langselector = $( 'select#language' );
function listFonts( fonts ) {
fonts.push( 'Sans', 'Serif' );
$.merge( fonts, [ 'Sans', 'Serif' ] );
$fontSelector.find( 'option' ).remove();
fonts.forEach( function ( font ) {
$.each( fonts, function ( key, font ) {
$fontSelector.append( $( "<option></option>" )
.attr( "value", font ).text( font ) );
} );
@@ -50,7 +50,7 @@
}
listFonts( fonts );
languages.forEach( function ( language ) {
$.each( languages, function ( lang, language ) {
$langselector.append( $( "<option></option>" )
.attr( 'value', language )
.text( language + " - " + $.uls.data.getAutonym( language ) ) );