Browse Source

Fix bug: set cur=0 after submit

pull/10/head
Hironsan 6 years ago
parent
commit
a2bb8eb5d7
3 changed files with 4 additions and 3 deletions
  1. BIN
      doccano/app/db.sqlite3
  2. 5
      doccano/app/server/static/annotation.js
  3. 2
      doccano/app/server/static/main.js

BIN
doccano/app/db.sqlite3

5
doccano/app/server/static/annotation.js

@ -76,9 +76,10 @@ var vm = new Vue({
}
this.showMessage(this.cur);
},
submit: function () {
submit: async function () {
this.url = `docs/?q=${this.searchQuery}`;
this.search();
await this.search();
this.cur = 0;
},
search: async function () {
await HTTP.get(this.url).then(response => {

2
doccano/app/server/static/main.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save