|
|
@ -334,20 +334,10 @@ function BurningDataService($http) { |
|
|
|
console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock); |
|
|
|
console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock); |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
myself.startingStatPts[stock] = new StartingStatPoints(myself.stock_objs[stock]); |
|
|
|
$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); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Load starting stat points table from server */ |
|
|
|
/* Load resources from server */ |
|
|
|
var loadResourcesForStock = function(stock){ |
|
|
|
var loadResourcesForStock = function(stock){ |
|
|
|
if( ! isValidStock(stock) ){ |
|
|
|
if( ! isValidStock(stock) ){ |
|
|
|
console.log("Loading resources failed: asked to load for invalid stock " + stock); |
|
|
|
console.log("Loading resources failed: asked to load for invalid stock " + stock); |
|
|
|