I've added external js-script link into <head> of my main.html
and add js-script into beginning of edit.tpl file of my address field
Now all requests going through API and nothing works! How can I fix that?
espo.min.js?r=1465563870645:4 GET http://-my-server-/api/v1/https://su...status/address 404 (Not Found)
espo.min.js?r=1465563870645:4 POST http://-my-server-/api/v1/https://su...uggest/address 404 (Not Found)
Code:
<head> .... <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.suggestions/16.5.3/js/jquery.suggestions.min.js"></script> </head>
Code:
<script type="text/javascript">
(function($){
$(document).ready(
function() {
$("#address").suggestions({
serviceUrl: "https://suggestions.dadata.ru/suggestions/api/4_1/rs",
token: "xxx",
type: "ADDRESS",
count: 5,
onSelect: function(suggestion) {
console.log(suggestion);
}
});
});
})(jQuery);
</script>
espo.min.js?r=1465563870645:4 GET http://-my-server-/api/v1/https://su...status/address 404 (Not Found)
espo.min.js?r=1465563870645:4 POST http://-my-server-/api/v1/https://su...uggest/address 404 (Not Found)

Comment