Skip to content

Commit

Permalink
Fix url encoding error.
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 27, 2013
1 parent 97fc7be commit 47b4716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/ranaly.js
Expand Up @@ -3,15 +3,15 @@
var ranalyApi = {
amount : {
get: function (buckets, dates, callback) {
$.post('/api/amount_get/' + buckets.join(','), {time: dates}, callback);
$.post('/api/amount_get/' + encodeURI(buckets.join(',')), {time: dates}, callback);
},
sum: function (buckets, dates, callback) {
$.post('/api/amount_sum/' + buckets.join(','), {time: dates}, callback);
$.post('/api/amount_sum/' + encodeURI(buckets.join(',')), {time: dates}, callback);
}
},
datalist : {
get: function (bucket, from, to, callback) {
$.get('/api/datalist_get/' + bucket, {from: from, to: to}, callback);
$.get('/api/datalist_get/' + encodeURI(bucket), {from: from, to: to}, callback);
}
}
};
Expand Down

0 comments on commit 47b4716

Please sign in to comment.