Merge pull request #466 from djlemmings/master

Fixed the wrong endpoint value check when no endpoint is set in config.
This commit is contained in:
William Durand 2014-08-08 17:46:19 +02:00
commit 38f0bec705

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();
}