Перейти к содержанию

MediaWiki:Common.js: различия между версиями

нет описания правки
Нет описания правки
Нет описания правки
Строка 22: Строка 22:
     // Check if the link title is equal to the current page title
     // Check if the link title is equal to the current page title
     if (linkTitle === currentPageTitle) {
     if (linkTitle === currentPageTitle) {
      // Make the link bold
      link.closest('li').classList.add('a-current');
    }
    if (linkTitle === ('Главная' + currentPageTitle)) {
       // Make the link bold
       // Make the link bold
       link.closest('li').classList.add('a-current');
       link.closest('li').classList.add('a-current');