0.12.29 fix trans
This commit is contained in:
@@ -94,7 +94,11 @@ def edit_route_ajax(request):
|
||||
return JsonResponse({'errors': msg})
|
||||
|
||||
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=200)
|
||||
resDict = {
|
||||
'html': html,
|
||||
'btn_title': _('Сохранить изменения')
|
||||
}
|
||||
return JsonResponse(resDict, status=200)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -796,7 +796,7 @@ function editRoute(id) {
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
if(data.html){
|
||||
let changeTextButton = document.getElementById('registration')
|
||||
changeTextButton.innerText = 'Сохранить изменения'
|
||||
changeTextButton.innerText = data.btn_title
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
|
||||
Reference in New Issue
Block a user