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

Commit

Permalink
#3 experimental functionality (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
steffchep committed Feb 16, 2018
1 parent 89ec0a6 commit e940021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/js/store/talks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define(['store', 'computed', 'request', 'popups', 'dataHelper', 'scrollHelper'],
var message = "<span>Room: </span><em class=\"dark\">"
+ theTalk.roomName
+ "</em>\n<span>Time: </span><em class=\"dark\">" + theTalk.formattedStart
+ "</em>\n\n<span>Occupied seats: </span><em>"+ theTalk.occupiedSeats
+ "</em>\n\n<span>Occupied seats: </span><em>"+ newValueForSeats
+ "</em>\n\n<span>New Status: </span><em class=\"" + status.replace(" ", "") + "\">"
+ status
+ "</em>\n\nContinue?";
Expand Down Expand Up @@ -72,7 +72,7 @@ define(['store', 'computed', 'request', 'popups', 'dataHelper', 'scrollHelper'],
var newValue = document.querySelector("input[data-id='" + id +"']").value;
if (!store.loggedIn) {
popups.alert("Please Log In", "You must be logged in to do this.");
document.querySelector("input[data-id='" + id +"']").value = theTalk.availableSeats;
document.querySelector("input[data-id='" + id +"']").value = theTalk.occupiedSeats;
return;
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/js/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ define(['dataHelper'], function (helper) {
initialize();
}

var headers = {};
var headers = {
"Content-Type" : "application/json"
};
if (keycloakToken) {
headers.Authorization = "Bearer " + keycloakToken;
}
Expand Down

0 comments on commit e940021

Please sign in to comment.