Skip to content

Commit

Permalink
solved minor issue..
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardodebenedictis committed Sep 19, 2018
1 parent d169c17 commit 5898546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LECTurE-WebApp/src/main/webapp/lecture.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $(document).ready(function () {

console.log("retrieving lessons..");
$.ajax({
url: "http://localhost:8080/LECTurE-WebApp-1.0/LECTurE/lessons"
url: "http://localhost:8080/LECTurE/resources/lessons"
}).then(function (lessons) {
console.log("found " + lessons.length + " lessons..");
document.getElementById("lessons_count").textContent = lessons.length;
Expand Down Expand Up @@ -121,7 +121,7 @@ $(document).ready(function () {
var lesson_id = lessons[i].id;
btn_del.onclick = function () {
$.ajax({
url: "http://localhost:8080/LECTurE-WebApp-1.0/LECTurE/lessons/" + lesson_id,
url: "http://localhost:8080/LECTurE/resources/lessons/" + lesson_id,
type: "DELETE"
}).then(function () {
tbdy.removeChild(tr);
Expand Down

0 comments on commit 5898546

Please sign in to comment.