diff --git a/app/js/v2/train.js b/app/js/v2/train.js index f34530a..0cfaf69 100644 --- a/app/js/v2/train.js +++ b/app/js/v2/train.js @@ -16,6 +16,7 @@ const TrainModel = Backbone.Model.extend({ const url = `https://traintimes.silvrtree.co.uk/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`; const routeUrl = `https://traintimes.silvrtree.co.uk/gettrains?from=${ this.get('from') }&to=${ this.get('to')}`; const target = this.get('from') + this.get('to'); + this.set('url', url); this.set('routeUrl', routeUrl); this.set('target', target); diff --git a/app/js/v2/weatherV2.js b/app/js/v2/weatherV2.js index 08accba..9d5d0fd 100644 --- a/app/js/v2/weatherV2.js +++ b/app/js/v2/weatherV2.js @@ -60,11 +60,11 @@ const WView = Backbone.View.extend({ 'template': _.template(` <% _.each(data, function(item) {%>
-
+
<%= item.day %>
<%= item.date %>
-
+
<%= item.tempHigh %>° / @@ -72,7 +72,7 @@ const WView = Backbone.View.extend({
<%= item.summary %>
-
+
<%= item.tempMorn %>°
<%= item.tempDay %>°
<%= item.tempEve %>°