From 65d788512beb022a765933e13b140b1587839f72 Mon Sep 17 00:00:00 2001 From: Elena Date: Fri, 9 Nov 2018 13:42:28 +0400 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D1=87=D0=B0=20?= =?UTF-8?q?=E2=84=9610?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/public/js/papers.js | 8 ++++++-- src/main/resources/templates/papers/paper.html | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) 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 @@