This commit is contained in:
SBD
2023-12-08 15:18:48 +03:00
parent 8ebf90b79f
commit e336ed38aa
2 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,11 @@ function renderContent (el=null) {
} else {
data['section_url'] = el.dataset['url']
}
if (window.location.href.includes("ru")){
data['lang'] = 'ru'
} else if (window.location.href.includes("en")){
data['lang'] = 'en'
}
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/get_content_for_section/',