From 264036fe53f25c77372034daa76e66fcef054f57 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Tue, 20 May 2014 16:10:26 +0000 Subject: [PATCH] Added error handler to AJAX request in stations.js. --- www/stations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/stations.js b/www/stations.js index f9d5d36..e6295b2 100644 --- a/www/stations.js +++ b/www/stations.js @@ -105,6 +105,10 @@ function loadStations(stime, etime) { $("#stationstable > tbody > tr:even").addClass("odd"); $("#stationstable > tbody > tr:odd").addClass("even"); stationLayer.bringToFront(); + }, + error: function( jqxhr, textStatus, error ) { + var err = textStatus + ", " + error; + console.log( "Request Failed: " + err ); } }); // create stations csv download link