Changes

m
remove symbols from routes
Line 11: Line 11:  
if($(".FleetCompilation").length > 0){
 
if($(".FleetCompilation").length > 0){
 
$(".FleetReport").each(function(){
 
$(".FleetReport").each(function(){
thisRoute = $(this).data("route");
+
thisRoute = $(this).data("route").replace(/\W+/g, "");
 
thisFleet = [ $(this).data("ship1"), $(this).data("ship2"), $(this).data("ship3"), $(this).data("ship4"), $(this).data("ship5"), $(this).data("ship6"), ];
 
thisFleet = [ $(this).data("ship1"), $(this).data("ship2"), $(this).data("ship3"), $(this).data("ship4"), $(this).data("ship5"), $(this).data("ship6"), ];
 
thisFleet.sort();
 
thisFleet.sort();
15

edits