From 2598538de914d5c905eefb253efbc90dcb0d2402 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 23 Feb 2019 14:13:41 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BE=D1=82=D0=B7=D1=8B=D0=B2=D1=87=D0=B8=D0=B2=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8C=20historyPage=20=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/HistoryPage/HistoryPage.vue | 6 +++++- client/components/Reader/Reader.vue | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index ea24ec44..619220f2 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/client/components/Reader/HistoryPage/HistoryPage.vue @@ -43,6 +43,7 @@ placeholder="Найти"/-->
{ + this.$refs.input.focus(); + }); } updateTableData() { diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 1f327133..40f9d51e 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -69,7 +69,7 @@ @stop-text-search="stopTextSearch"> - + @@ -415,6 +415,7 @@ class Reader extends Vue { this.historyActive = !this.historyActive; if (this.historyActive) { this.closeAllTextPages(); + this.$refs.historyPage.init(); this.historyActive = true; } else { this.historyActive = false; @@ -831,6 +832,8 @@ class Reader extends Vue { break; case 'KeyX': this.historyToggle(); + event.preventDefault(); + event.stopPropagation(); break; case 'KeyS': this.settingsToggle();