Skip to content

Commit

Permalink
sfwebui: Use user-defined doc root path for static JS (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles authored Nov 5, 2023
1 parent e17b230 commit 313b82a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spiderfoot/static/js/spiderfoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sf.remove_sfurltag = function (data) {

sf.search = function (scan_id, value, type, postFunc) {
sf.fetchData(
"/search",
docroot + "/search",
{ id: scan_id, eventType: type, value: value },
postFunc
);
Expand All @@ -92,7 +92,7 @@ sf.search = function (scan_id, value, type, postFunc) {
sf.deleteScan = function(scan_id, callback) {
var req = $.ajax({
type: "GET",
url: "/scandelete?id=" + scan_id
url: docroot + "/scandelete?id=" + scan_id
});
req.done(function() {
alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Deleted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));
Expand All @@ -108,7 +108,7 @@ sf.deleteScan = function(scan_id, callback) {
sf.stopScan = function(scan_id, callback) {
var req = $.ajax({
type: "GET",
url: "/stopscan?id=" + scan_id
url: docroot + "/stopscan?id=" + scan_id
});
req.done(function() {
alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Aborted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));
Expand Down

0 comments on commit 313b82a

Please sign in to comment.