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