From 0d1d9a4b6d23515bf7f71e5e49cf11c827564edb Mon Sep 17 00:00:00 2001 From: Amire80 Date: Sun, 21 Aug 2016 15:48:05 +0300 Subject: [PATCH] Apply toLowerCase when reading featured articles Consistently with getInterlanguageList(). Without this 'nds-NL' will be handled incorrectly when the article in it is featured. Bug: T143527 Change-Id: Ie7fe5a270cb3030899b6034512351d5d66d7be06 --- resources/js/ext.uls.compactlinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ext.uls.compactlinks.js b/resources/js/ext.uls.compactlinks.js index 23c52436..581b84dd 100644 --- a/resources/js/ext.uls.compactlinks.js +++ b/resources/js/ext.uls.compactlinks.js @@ -378,7 +378,7 @@ */ CompactInterlanguageList.prototype.filterByBadges = function () { return $( '#p-lang' ).find( '[class*="badge"]' ).map( function ( i, el ) { - return $( el ).find( 'a' ).attr( 'lang' ); } + return $( el ).find( 'a' ).attr( 'lang' ).toLowerCase(); } ).toArray(); };