diff --git a/templates/index.html b/templates/index.html index c84d8c8..323eb6a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,10 @@ function importDevice() { md5 = gns3.importDevice(); - window.location = "/images/" + md5 + ".html" + if (md5 != null) { + window.location = "/images/" + md5 + ".html" + } + return false; } {% endblock %} @@ -14,6 +17,6 @@ function importDevice() { Show devices - Import device + Import device
{% endblock %}