From 2db572f284cbc67483c0e5149d40ff9aadd2652f Mon Sep 17 00:00:00 2001 From: Elena Date: Fri, 9 Nov 2018 15:43:25 +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 | 11 ++++++----- src/main/resources/templates/papers/paper.html | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) 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 @@