* Fix XML export in modal windows * Removed useless concatenation * Revert removed basePath in JS and added basePath to HTMX template
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -511,12 +511,12 @@ function performXmlDownload() {
|
|||||||
if (curr_url.includes(sites_prefix)) {
|
if (curr_url.includes(sites_prefix)) {
|
||||||
var site_id = curr_url.split(sites_prefix)[1];
|
var site_id = curr_url.split(sites_prefix)[1];
|
||||||
site_id = site_id.split('/')[0]
|
site_id = site_id.split('/')[0]
|
||||||
xml_search_options = 'site_id=' + site_id + '&show_cables=on&show_unconnected=on'
|
xml_search_options = 'site_id=' + site_id + '&show_cables=True&show_unconnected=True'
|
||||||
}
|
}
|
||||||
else if (curr_url.includes(location_prefix)) {
|
else if (curr_url.includes(location_prefix)) {
|
||||||
var location_id = curr_url.split(location_prefix)[1];
|
var location_id = curr_url.split(location_prefix)[1];
|
||||||
location_id = location_id.split('/')[0]
|
location_id = location_id.split('/')[0]
|
||||||
xml_search_options = 'location_id=' + location_id + '&show_cables=on&show_unconnected=on'
|
xml_search_options = 'location_id=' + location_id + '&show_cables=True&show_unconnected=True'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -40,5 +40,6 @@
|
|||||||
var is_htmx = true;
|
var is_htmx = true;
|
||||||
var brokenImage = '{{ broken_image }}';
|
var brokenImage = '{{ broken_image }}';
|
||||||
var topologyData = {{ topology_data | safe }};
|
var topologyData = {{ topology_data | safe }};
|
||||||
|
const basePath = '{{ basepath }}';
|
||||||
</script>
|
</script>
|
||||||
<script src="{% static 'netbox_topology_views/js/app.js' %}?ver={{ epoch }} " defer></script>
|
<script src="{% static 'netbox_topology_views/js/app.js' %}?ver={{ epoch }} " defer></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user