Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2c9b919 authored by Dirk Dougherty's avatar Dirk Dougherty
Browse files

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

Change-Id: I2e9e450c8d773765b61c6967a3f6529eb29b8dc2
parent ad185004
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1326,7 +1326,7 @@ function requestAppendHL(uri) {
function changeNavLang(lang) {
  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
    var $link = $(this);
    // put the desired language from the attribute as the text