Open quantumJLBass opened 8 years ago
Here under https://github.com/washingtonstateuniversity/WSU-mapping/blob/master/CampusMap2010/Content/src/js/wsu_maps.directions.js#L154
The inputs are hard coded to $('#directionsFrom input') and $('#directionsTo input') which means you can't just do random directions at will. The simple fix is to just pass in the jQuery objects as arguments, and default to these named inputs.
$('#directionsFrom input')
$('#directionsTo input')
The output should also be an optional items https://github.com/washingtonstateuniversity/WSU-mapping/blob/master/CampusMap2010/Content/src/js/wsu_maps.directions.js#L182
Here under https://github.com/washingtonstateuniversity/WSU-mapping/blob/master/CampusMap2010/Content/src/js/wsu_maps.directions.js#L154
The inputs are hard coded to
$('#directionsFrom input')
and$('#directionsTo input')
which means you can't just do random directions at will. The simple fix is to just pass in the jQuery objects as arguments, and default to these named inputs.The output should also be an optional items https://github.com/washingtonstateuniversity/WSU-mapping/blob/master/CampusMap2010/Content/src/js/wsu_maps.directions.js#L182