washingtonstateuniversity / WSU-mapping

This provides maping for all campus locations
GNU General Public License v3.0
1 stars 0 forks source link

Make directions inputs/output optionalble #24

Open quantumJLBass opened 8 years ago

quantumJLBass commented 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.

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