fix enpoint bug

This commit is contained in:
Lucas Almeida 2014-08-04 09:58:02 -03:00
parent 4306a1a4a3
commit b4ca14618a

2
Resources/views/layout.html.twig Normal file → Executable file
View File

@ -396,7 +396,7 @@
{% else -%}
var endpoint = '{{ endpoint }}';
{% endif -%}
if ($('#api_endpoint') && $('#api_endpoint').val() != null) {
if ($('#api_endpoint') && $('#api_endpoint').val() != '') {
endpoint = $('#api_endpoint').val();
}