Commit 5f63c83bafe97c1545de0fb6c08af5499b0ae6ff

Authored by Goutte
1 parent 6b149919

Lint.

Showing 2 changed files with 4 additions and 6 deletions   Show diff stats
1 1
2 -The sources of the website available at https://spaceweatheronline.cdpp.eu  
3 - 2 +## http://heliopropa.irap.omp.eu
4 3
5 # What 4 # What
6 5
7 ## Web Server 6 ## Web Server
8 7
9 Build and serve heliopropa's visualizations. 8 Build and serve heliopropa's visualizations.
10 -It's a `flask` webserver, serving `d3.js` plots written in `livescript`. 9 +It's a `flask` webserver, serving `d3.js` plots written in `livescript`,
  10 +which is just javascript with lots of sugar to make it palatable.
11 It also gathers NetCDF data from AMDA, and serves it as CSV to the plotter. 11 It also gathers NetCDF data from AMDA, and serves it as CSV to the plotter.
12 12
13 13
web/view/home.html.jinja2
@@ -457,9 +457,7 @@ jQuery().ready(function($){ @@ -457,9 +457,7 @@ jQuery().ready(function($){
457 type: 'GET', 457 type: 'GET',
458 url: url, 458 url: url,
459 processData: false, 459 processData: false,
460 - success: function (data) {  
461 - window.location = url;  
462 - }, 460 + success: function (data) { window.location = url; },
463 error: function (xhr) { 461 error: function (xhr) {
464 console.error('Cannot download.', xhr); 462 console.error('Cannot download.', xhr);
465 alert("Our apologies, there was an error while downloading."); 463 alert("Our apologies, there was an error while downloading.");