mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-30 09:38:52 +00:00
Support the import feature
This commit is contained in:
parent
930d35f4cd
commit
d6baee2fe1
@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
function importDevice() {
|
function importDevice() {
|
||||||
md5 = gns3.importDevice();
|
md5 = gns3.importDevice();
|
||||||
|
if (md5 != null) {
|
||||||
window.location = "/images/" + md5 + ".html"
|
window.location = "/images/" + md5 + ".html"
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -14,6 +17,6 @@ function importDevice() {
|
|||||||
</div
|
</div
|
||||||
<p>
|
<p>
|
||||||
<a class="btn btn-primary btn-lg" href="/devices" role="button">Show devices</a>
|
<a class="btn btn-primary btn-lg" href="/devices" role="button">Show devices</a>
|
||||||
<a class="btn btn-primary btn-lg" href="#" role="button" onclick="importDevice()">Import device</a>
|
<a class="btn btn-primary btn-lg" href="#" role="button" onclick="return importDevice()">Import device</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user