Adding stats end point to JS.

This commit is contained in:
marcins78@gmail.com
2012-07-09 14:38:10 +00:00
parent 2bf53b0cbd
commit 38fa8ef2c5

View File

@@ -68,6 +68,21 @@ var GempLotrCommunication = Class.extend({
});
},
getStats:function (startDay, length, callback, errorMap) {
$.ajax({
type:"GET",
url:this.url + "/stats",
cache:false,
data:{
startDay:startDay,
length:length,
participantId:getUrlParam("participantId") },
success:this.deliveryCheck(callback),
error:this.errorCheck(errorMap),
dataType:"xml"
});
},
getLiveTournaments:function (callback, errorMap) {
$.ajax({
type:"GET",