From 8d48822d0e58fce647a984d9b47fdc555f8aa4be Mon Sep 17 00:00:00 2001 From: Dan Frei Date: Fri, 10 Mar 2017 22:52:37 -0600 Subject: Add wanakana to search.html --- ext/bg/search.html | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/bg/search.html b/ext/bg/search.html index adeb9373..c9f6a267 100644 --- a/ext/bg/search.html +++ b/ext/bg/search.html @@ -32,6 +32,7 @@
+ -- cgit v1.2.3 From 99754802aa0f939f855cc08dc713baa1dd3cc754 Mon Sep 17 00:00:00 2001 From: Dan Frei Date: Fri, 10 Mar 2017 23:10:32 -0600 Subject: Bind wanakana IME to search field --- ext/bg/js/display-window.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/bg/js/display-window.js b/ext/bg/js/display-window.js index c3890721..ad193c5b 100644 --- a/ext/bg/js/display-window.js +++ b/ext/bg/js/display-window.js @@ -21,6 +21,7 @@ window.displayWindow = new class extends Display { constructor() { super($('#spinner'), $('#content')); $('#search').click(this.onSearch.bind(this)); + window.wanakana.bind($('#query').get(0)); } definitionAdd(definition, mode) { -- cgit v1.2.3 From 86583defb021cf986726cd23d65ec0066297c1e1 Mon Sep 17 00:00:00 2001 From: Dan Frei Date: Fri, 10 Mar 2017 23:26:56 -0600 Subject: Update search.html to load wanakana later wanakana apparently has encoding bugs if other things are loaded after --- ext/bg/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bg/search.html b/ext/bg/search.html index c9f6a267..e9c25e15 100644 --- a/ext/bg/search.html +++ b/ext/bg/search.html @@ -32,10 +32,10 @@
- + -- cgit v1.2.3