Added error handler to AJAX request in stations.js.

This commit is contained in:
Kasper D. Fischer 2014-05-20 16:10:26 +00:00
parent 2238086066
commit 264036fe53
Notes: subgit 2018-03-07 17:58:58 +01:00
r666 www/trunk

View File

@ -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