@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | if ($data) { |
23 | - $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address'];// . '<br /><small>' . $data['OutDescription'].'</small>'; |
|
23 | + $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address']; // . '<br /><small>' . $data['OutDescription'].'</small>'; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | ?> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | function my_function(result) { |
33 | 33 | console.log(result); |
34 | 34 | // устанавливаем в скрытое поле ID терминала |
35 | - document.getElementById('<?=$id;?>').value = result.id; |
|
35 | + document.getElementById('<?=$id; ?>').value = result.id; |
|
36 | 36 | // показываем пользователю название точки и адрес доствки |
37 | 37 | document.getElementById('address').innerHTML = result['name'] + '<br />' + result['address']; |
38 | 38 | inji.onLoad(function () { |