Don't save svg, return rendering at api endpoint.

One less layer of needless indirection is nice, but I did this so that I could
use this app on heroku, which does not allow saving files to the file-system.
This commit is contained in:
2014-07-28 22:32:38 -04:00
parent 09cb0a311c
commit 0175764b17
3 changed files with 14 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ function update_charts(selected) {
request = $.ajax({
url: '/ajax/current/' + halls[selected]
}).done(function (result) {
svg.attr('src', result);
svg.attr('src', '/ajax/current/' + halls[selected]);
$('#loading').remove();
console.log(svg);
$('.current-chart').append(svg);