From ca69a293b8eecaf66754fdfe2c667edd601c79d8 Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Thu, 29 Dec 2022 18:50:49 -0600 Subject: [PATCH] Use starting stat data from stock objects --- src/public/js/burning-service.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/public/js/burning-service.js b/src/public/js/burning-service.js index 9b3f013..819e677 100644 --- a/src/public/js/burning-service.js +++ b/src/public/js/burning-service.js @@ -334,20 +334,10 @@ function BurningDataService($http) { console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock); return } - - $http.get("/starting_stat_pts/" + stock, {'timeout': 3000} ). - success(function(data,status,headers,config){ - myself.startingStatPts[stock] = new StartingStatPoints(data); - // myself.datasetLoaded(); - console.log("Loaded "+stock+" starting stat points. "); - }). - error(function(data,status,headers,config){ - // myself.datasetLoaded(); - console.log("Error: Getting "+stock+" stat points from server failed: HTTP code " + status + ": " + data); - }); + myself.startingStatPts[stock] = new StartingStatPoints(myself.stock_objs[stock]); } - /* Load starting stat points table from server */ + /* Load resources from server */ var loadResourcesForStock = function(stock){ if( ! isValidStock(stock) ){ console.log("Loading resources failed: asked to load for invalid stock " + stock);