Skip to content

Commit e3f82ee

Browse files
author
devGregA
committed
corrected urls in report_builder.html
1 parent de7d0bf commit e3f82ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dojo/templates/dojo/report_builder.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ <h4>Available Widgets</h4>
167167

168168
$(document).on('submit', 'form.finding-list', function (event) {
169169
var form = this;
170-
$.get('/reports/findings?' + $(this).serialize()).done(function (data) {
170+
$.get("{% url 'report_findings' %}?" + $(this).serialize()).done(function (data) {
171171
$(form).closest('li.finding-list').html(data);
172172
setUpFindingFilters();
173173
});
@@ -178,7 +178,7 @@ <h4>Available Widgets</h4>
178178
$(document).on('click', 'form.finding-list a.clear.centered, div.finding-pagination a', function (event) {
179179
var link_href = $(this).attr('href')
180180
console.log(link_href);
181-
$.get('/reports/findings'+link_href).done(function (data) {
181+
$.get("{% url 'report_findings' %}"+link_href).done(function (data) {
182182
$('div.in-use-widgets li.finding-list').html(data);
183183
setUpFindingFilters();
184184
});
@@ -188,7 +188,7 @@ <h4>Available Widgets</h4>
188188

189189
$(document).on('submit', 'form.endpoint-list', function (event) {
190190
var form = this;
191-
$.get('/reports/endpoints?' + $(this).serialize()).done(function (data) {
191+
$.get("{% url 'report_endpoints' %}?" + $(this).serialize()).done(function (data) {
192192
$(form).closest('li.endpoint-list').html(data);
193193
setUpFindingFilters();
194194
});
@@ -197,7 +197,7 @@ <h4>Available Widgets</h4>
197197
});
198198

199199
$(document).on('click', 'form.endpoint-list a.clear.centered, div.endpoint-pagination a', function (event) {
200-
$.get('/reports/endpoints').done(function (data) {
200+
$.get("{% url 'report_endpoints' %}").done(function (data) {
201201
$('div.in-use-widgets li.endpoint-list').html(data);
202202
setUpFindingFilters();
203203
});

0 commit comments

Comments
 (0)