diff options
Diffstat (limited to 'lib/srtgui/templates/defects-toastertable.html')
-rw-r--r-- | lib/srtgui/templates/defects-toastertable.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/srtgui/templates/defects-toastertable.html b/lib/srtgui/templates/defects-toastertable.html index 82a6c5ee..1d699909 100644 --- a/lib/srtgui/templates/defects-toastertable.html +++ b/lib/srtgui/templates/defects-toastertable.html @@ -29,7 +29,8 @@ <h1 class="top-air" data-role="page-title"></h1> </div> - {% url 'cpes' 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> @@ -52,6 +53,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> |