Merge pull request #471 from yoshz/bugfix/undefined-endpoint

Fixed endpoint is undefined in sandbox when custom_endpoint is disabled
This commit is contained in:
William Durand 2014-08-14 21:31:58 +02:00
commit 40c76339b6

View File

@ -396,9 +396,11 @@
{% else -%}
var endpoint = '{{ endpoint }}';
{% endif -%}
{% if authentication.custom_endpoint %}
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
endpoint = $('#api_endpoint').val();
}
{% endif %}
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
if (method == "LINK") {