From 16834ee33bc2ace8c3621f630300ab8f0bd3b7da Mon Sep 17 00:00:00 2001 From: ArtemB Date: Thu, 20 Jul 2023 16:21:12 +0300 Subject: [PATCH] 0.0.24 upd autocomlitev2.js --- static/js/autocomlitev2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/autocomlitev2.js b/static/js/autocomlitev2.js index e62e050..79d8424 100644 --- a/static/js/autocomlitev2.js +++ b/static/js/autocomlitev2.js @@ -7,7 +7,7 @@ function searchTown(el){ $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, - url: 'ru/reference_data/get_address_point/', + url: '/ru/reference_data/get_address_point/', type: "POST", // async: true, cache: false, @@ -35,7 +35,7 @@ function search(e) { let results = searchTown(ac); - var divs = results.map()(function(r, i) { + var divs = results.map(function(r, i) { return '
' + '
'+ r.iata +' - '+ r.name +'
' + '
'+ r.city +', '+ r.country +'
'