0.0.37
change algo get_address_point_ajax
This commit is contained in:
@@ -42,8 +42,10 @@ def get_address_point_ajax(request):
|
||||
|
||||
res_data_str_list = []
|
||||
i = 0
|
||||
|
||||
for item in res_data:
|
||||
item['index'] = i
|
||||
item['ctrl_name'] = data['ctrl_name']
|
||||
res_data_str_list.append(render_to_string('widgets/w_ac_input_address_point.html', item))
|
||||
i += 1
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div onclick="selectItemAddrPoint({{ id }}, {{ name }})" class="autocomplete-result" data-index="{{ index }}">
|
||||
<div onclick="selectItemAddrPoint({{ id }}, '{{ name }}, {{ ctrl_name }}')" class="autocomplete-result" data-index="{{ index }}">
|
||||
<div><b>{{ iata_code }}</b> - {{ name }}</div>
|
||||
<div class="autocomplete-location">{{ city__name }}, {{ city__country__name }}</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user