aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/templates/products-toastertable.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/templates/products-toastertable.html')
-rw-r--r--lib/srtgui/templates/products-toastertable.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/srtgui/templates/products-toastertable.html b/lib/srtgui/templates/products-toastertable.html
index 65602be7..7e12b96b 100644
--- a/lib/srtgui/templates/products-toastertable.html
+++ b/lib/srtgui/templates/products-toastertable.html
@@ -30,7 +30,8 @@
<h1 class="top-air" data-role="page-title"></h1>
</div>
- {% url 'cves' as xhr_table_url %}
+ {# xhr_table_url is just the current url so leave it blank #}
+ {% url '' as xhr_table_url %}
{% include 'toastertable.html' %}
</div>
</div>
@@ -53,6 +54,17 @@
}
titleElt.text(title);
+
+ /* Set the report link */
+ var record_list=""
+ $(".name > a").each(function(){
+ var this_id=$(this).prop('id');
+ if (this_id.startsWith("dataid_")) {
+ record_list +=this_id.replace(/dataid_/,"") + ",";
+ }
+ });
+ $('#report_link').attr('href',"{% url 'report' request.resolver_match.url_name %}?record_list="+record_list);
+
});
});
</script>