mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-20 21:33:09 +00:00
Support the import feature
This commit is contained in:
parent
930d35f4cd
commit
d6baee2fe1
@ -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() {
|
||||
</div
|
||||
<p>
|
||||
<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>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user