From a57f6f39d888154c77b54a0c4422bb45b2a90646 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 13 Jun 2018 11:27:38 +0900 Subject: [PATCH] Update search --- doccano/app/server/static/annotation.1.js | 5 +++-- doccano/app/server/templates/annotation.1.html | 9 --------- doccano/app/server/views.py | 2 ++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/doccano/app/server/static/annotation.1.js b/doccano/app/server/static/annotation.1.js index e28a1934..70d37fb0 100644 --- a/doccano/app/server/static/annotation.1.js +++ b/doccano/app/server/static/annotation.1.js @@ -26,7 +26,6 @@ var vm = new Vue({ total: 0, remaining: 0, searchQuery: '', - history: [] }, methods: { @@ -90,7 +89,9 @@ var vm = new Vue({ axios.get('/' + base_url + '/apis/search?keyword=' + this.searchQuery) .then(function (response) { console.log('search response'); - self.history = response.data['data']; + console.log(response.data['data']); + self.items = response.data['data']; + self.searchQuery = ''; }) .catch(function (error) { console.log('ERROR!! happend by Backend.') diff --git a/doccano/app/server/templates/annotation.1.html b/doccano/app/server/templates/annotation.1.html index 07da2775..15756353 100644 --- a/doccano/app/server/templates/annotation.1.html +++ b/doccano/app/server/templates/annotation.1.html @@ -8,15 +8,6 @@ Active Learn -