mirror of https://github.com/CIRCL/lookyloo
fix: JS error on dublicate embedded resource in same page
parent
43b23c23ac
commit
774a99deb1
|
@ -317,7 +317,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if 'other_captures' in details %}
|
||||
{{ indexed_hash(details['other_captures'], hash) }}
|
||||
{{ indexed_hash(details['other_captures'], url['url_object'].uuid + '_' + loop.index|string) }}
|
||||
{% endif %}
|
||||
<p><a href="{{ url_for('body_hash_details', body_hash=url['url_object'].body_hash, from_popup=True) }}">
|
||||
Show more information about this embedded content.
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
{% macro other_captures_table(entries, max_entries, identifier) %}
|
||||
<script type="text/javascript" nonce="{{ csp_nonce() }}">
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
new DataTable('#table_other_captures{{identifier}}', {
|
||||
new DataTable('#table_other_captures_{{identifier}}', {
|
||||
"order": [[ 1, "desc" ]],
|
||||
"paging": false,
|
||||
"info": false,
|
||||
|
@ -251,7 +251,7 @@
|
|||
</script>
|
||||
|
||||
<div>
|
||||
<table id="table_other_captures{{identifier}}" class="table table-striped" style="width:100%">
|
||||
<table id="table_other_captures_{{identifier}}" class="table table-striped" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
|
|
Loading…
Reference in New Issue