From d6baee2fe1b75c5d88f9f6e7629a668b248c7a94 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 5 Aug 2015 17:50:17 +0200 Subject: [PATCH] Support the import feature --- templates/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 %}