--- js/src/netmap/graph.js.orig 2015-03-19 14:35:23.976932746 +0100 +++ js/src/netmap/graph.js 2015-03-19 14:53:22.538932098 +0100 @@ -85,7 +85,8 @@ */ loadTraffic: function () { var self = this; - $.getJSON('traffic/layer' + this.get('layer') + '/') + /* we try to be _very_ patient when pulling traffic data, it's in the background anyway: 240 sec */ + $.ajax({ dataType: "json", url: 'traffic/layer' + this.get('layer') + '/', timeout: 240000 }) .done(function (data) { self.trafficSuccess.call(self, data); }) @@ -116,7 +117,7 @@ Backbone.EventBroker.trigger('netmap:updateGraph'); }, - trafficError: function () { console.log('Failed to fetch traffic'); + trafficError: function (jqXHR,textStatus,errorThrown) { console.log('Failed to fetch traffic '+textStatus+' / '+errorThrown); // TODO: Meaningful report }