Let ChangeNavLang switch lang for p as well as a element.

Change-Id: I2e9e450c8d773765b61c6967a3f6529eb29b8dc2
This commit is contained in:
Dirk Dougherty
2015-10-05 16:45:19 -07:00
parent ad185004de
commit a2c9b9191a

View File

@@ -1326,7 +1326,7 @@ function requestAppendHL(uri) {
function changeNavLang(lang) { function changeNavLang(lang) {
if (lang === 'en') { return; } if (lang === 'en') { return; }
var $links = $('a[' + lang + '-lang]'); var $links = $("a[" + lang + "-lang],p[" + lang + "-lang]");
$links.each(function(){ // for each link with a translation $links.each(function(){ // for each link with a translation
var $link = $(this); var $link = $(this);
// put the desired language from the attribute as the text // put the desired language from the attribute as the text