Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
changed eventsbooking url
Browse files Browse the repository at this point in the history
  • Loading branch information
sippsack committed Mar 8, 2018
1 parent 14d4e14 commit e7628ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/webapp/js/utils/dataHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ define(['moment'], function(moment) {
console.log("filtering is not supported on this browser, sorry!");
return events;
}
//var now = new moment();
var now = moment('2017-03-29T15:00:00.000'); // for testing
var now = new moment();
function filterByDate(event) {
return moment(event.end).isAfter(now);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/js/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ define(['dataHelper'], function (helper) {
}
var data = {
fullyBooked: talk.fullyBooked,
numberOccupied: talk.numberOccupied
numberOccupied: talk.occupiedSeats
};
httpRequest(urls.adminUrl + "/capacity/" + talk.id, "POST", onSuccess, onError, headers, data);
httpRequest(urls.bookingsUrl + "/" + talk.id, "POST", onSuccess, onError, headers, data);
}

return {
Expand Down

0 comments on commit e7628ce

Please sign in to comment.