Let ChangeNavLang switch lang for p as well as a element.
Change-Id: I2e9e450c8d773765b61c6967a3f6529eb29b8dc2
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user