Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Swapped direction and stop name.

  • Loading branch information...
commit 1b58fe74adb21a38fb48470a837d7943f1d5ee66 1 parent f98844f
@st3fan authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 resources/public/index.js
View
8 resources/public/index.js
@@ -106,9 +106,9 @@ app.controller('PredictionsController', function ($scope, $http, $timeout) {
_.each(prediction.directions, function (direction) {
var line = {route: prediction.route.tag,
direction: direction.title[0],
- stopName: simplifyDirectionName(direction.title),
+ name: simplifyDirectionName(direction.title),
times: [],
- name: getStopName(location.name, prediction.stop.tag) };
+ stopName: getStopName(location.name, prediction.stop.tag) };
_.each(direction.predictions, function(prediction) {
if (prediction.minutes > 1) {
line.times.push(prediction.minutes);
@@ -126,9 +126,9 @@ app.controller('PredictionsController', function ($scope, $http, $timeout) {
_.each(prediction.directions, function (direction) {
var line = {route: prediction.route.tag,
direction: direction.title[0],
- stopName: simplifyDirectionName(direction.title),
+ name: simplifyDirectionName(direction.title),
times: [],
- name: prediction.stop.title };
+ stopName: prediction.stop.title };
_.each(direction.predictions, function(prediction) {
if (prediction.minutes > 0) {
line.times.push(prediction.minutes);
Please sign in to comment.
Something went wrong with that request. Please try again.