Skip to content

Commit e778719

Browse files
added vehicle filter to predictions
1 parent a7748b2 commit e778719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var mission_id = 0;
22
var position_id = 0;
33
var data_url = "http://spacenear.us/tracker/datanew.php";
44
var receivers_url = "http://spacenear.us/tracker/receivers.php";
5-
var predictions_url = "http://spacenear.us/tracker/get_predictions.php";
5+
var predictions_url = "http://spacenear.us/tracker/get_predictions.php?vehicles=";
66

77
var habitat_max = 400;
88
var habitat_url = "http://habitat.habhub.org/habitat/";
@@ -2295,7 +2295,7 @@ function refreshPredictions() {
22952295

22962296
ajax_predictions = $.ajax({
22972297
type: "GET",
2298-
url: predictions_url,
2298+
url: predictions_url + encodeURIComponent(wvar.query),
22992299
data: "",
23002300
dataType: "json",
23012301
success: function(response, textStatus) {

0 commit comments

Comments
 (0)