diff --git a/src/main/resources/public/js/papers.js b/src/main/resources/public/js/papers.js index dd87c0b..d114fd9 100644 --- a/src/main/resources/public/js/papers.js +++ b/src/main/resources/public/js/papers.js @@ -17,16 +17,17 @@ function showPapers(papersElement) { }); } -function addPaper(title, status, comment, locked, deadline, file, dateCreate, dateUpdate) { +function addPaper(title, status,dateCreate, dateUpdate,deadline, comment, locked, tmpFileName, authors) { var paperData = JSON.stringify({ "title": title, "status": status, - "comment": comment, + "date-publish":date-publish, + "date-update":date-update, "deadline":deadline, + "comment": comment, "locked": locked, - "file":file, - "dateCreate":dateUpdate, - "dateUpdate":dateUpdate + "tmpFileName":tmpFileName, + "authors":authors }); 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 eee175d..507a90f 100644 --- a/src/main/resources/templates/papers/paper.html +++ b/src/main/resources/templates/papers/paper.html @@ -149,7 +149,8 @@