diff --git a/static/aerbimJS.js b/static/aerbimJS.js index a7af749..4de4d9e 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -131,7 +131,7 @@ function getInfoAboutUser (){ if (screen.width <= 800){ user_type = 'mobile' } else if (screen.width > 1024) { - user_type = 'desktop' + user_type = 'desktop' } else if (screen.width >= 800 && screen.width <= 1024) { user_type = 'laptop' } @@ -560,7 +560,7 @@ function choseItemTreeDocumentation (el){ this.classList.remove("chose") } }) - + el.classList.add("chose") let url = window.location.origin + el.dataset['url'] @@ -641,4 +641,9 @@ function breadCrumbGo (el){ window.location.href = window.location.origin + url } +} + +function changeCurArticle (el){ + let url = el.dataset['url'] + window.location.href = window.location.origin + url } \ No newline at end of file diff --git a/templates/pages/p_documentation.html b/templates/pages/p_documentation.html index 8d0db5c..51d03c7 100644 --- a/templates/pages/p_documentation.html +++ b/templates/pages/p_documentation.html @@ -140,12 +140,12 @@ -
+
{% trans "Предыдущий" %}
-
+
{% trans "Следующий" %}