Skip to content

Commit

Permalink
Bugfix in therapist homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
r-monti committed Jan 19, 2024
1 parent e0184aa commit ba76836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/webapp/CSS/homepageTherapist.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ tr.hoverable-row:hover {
}

.tdButton{
border: none;
background: none;
cursor: pointer;
color: deepskyblue;
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/webapp/JS/viewPatientInfo.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$(document).ready(function () {
let canvas = document.getElementById('myChart');
let parentContainer = canvas.parentNode;
let canvasDiv = $("#myChart");
let parentContainer = canvasDiv.parent();

$("#home").click(() => redirect("homepageTherapist.jsp"));
$("#message").click(() => redirect("messageCenter.jsp"));
$("#agenda").click(() => redirect("schedule.jsp"));
$("#docInfo").click(() => redirect("userArea.jsp"));

canvas.width = parentContainer.offsetWidth;
canvas.height = parentContainer.offsetHeight;
canvasDiv.width(parentContainer.width());
canvasDiv.height(parentContainer.height());
})

function showExercises(){
Expand Down

0 comments on commit ba76836

Please sign in to comment.