Skip to content

Commit

Permalink
Don't pass the goal slug if we don't have it
Browse files Browse the repository at this point in the history
  • Loading branch information
unho committed Jul 29, 2014
1 parent 67e0cb3 commit 0d2ad01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pootle/static/js/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@
var url = l('/xhr/stats/overview/'),
reqData = {
path: this.pootlePath,
goalSlug: this.goalSlug
};
if (this.goalSlug) {
reqData.goalSlug = this.goalSlug;
}
$.ajax({
url: url,
data: reqData,
Expand Down

0 comments on commit 0d2ad01

Please sign in to comment.