Fixed the wrong endpoint value check when no endpoint is set in config.

This commit is contained in:
Bruce HELLER 2014-08-07 16:45:46 +02:00
parent eb08b7af27
commit 5d43f463cf

View File

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