From 02f762b4f17eff57f47ea4d4489bc3307218a115 Mon Sep 17 00:00:00 2001 From: Alyona Date: Wed, 14 Nov 2018 08:55:46 +0400 Subject: [PATCH] filter --- src/main/resources/public/js/papers.js | 10 ++++++++++ .../resources/templates/papers/papers.html | 20 ++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/main/resources/public/js/papers.js b/src/main/resources/public/js/papers.js index 3b78d8a..a06198e 100644 --- a/src/main/resources/public/js/papers.js +++ b/src/main/resources/public/js/papers.js @@ -62,6 +62,16 @@ function addPaper(title, status, comment, locked) { }); } +function filterPaper(authorId, year) { + var paperData = JSON.stringify({ + "authors": title, + "": status + }); + postToRest(urlPapers, paperData, function (data) { + alert(data); + }); +} + function getPaperStatusClass(status) { switch (status) { case 'DRAFT': diff --git a/src/main/resources/templates/papers/papers.html b/src/main/resources/templates/papers/papers.html index 1c5322a..9a9ee7f 100644 --- a/src/main/resources/templates/papers/papers.html +++ b/src/main/resources/templates/papers/papers.html @@ -22,8 +22,26 @@ Добавить статью +
+

Фильтровать по:

+ + + +
- + 1