diff --git a/src/main/resources/public/js/papers.js b/src/main/resources/public/js/papers.js index bab27a7..9035221 100644 --- a/src/main/resources/public/js/papers.js +++ b/src/main/resources/public/js/papers.js @@ -17,12 +17,16 @@ function showPapers(papersElement) { }); } -function addPaper(title, status, comment, locked) { +function addPaper(title, status, comment, locked, deadline, file, dateCreate, dateUpdate) { var paperData = JSON.stringify({ "title": title, "status": status, "comment": comment, - "locked": locked + "deadline":deadline, + "locked": locked, + "file":file, + "dateCreate":dateUpdate, + "dateUpdate":dateUpdate }); postToRest(urlPapers, paperData, function (data) { alert(data); diff --git a/src/main/resources/templates/papers/paper.html b/src/main/resources/templates/papers/paper.html index 8cc9161..eee175d 100644 --- a/src/main/resources/templates/papers/paper.html +++ b/src/main/resources/templates/papers/paper.html @@ -149,7 +149,7 @@