From fa6a735fe5e1d4b995d9ef5db23f9dcc411237d9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Feb 2018 13:47:04 +0300 Subject: add search button to dict result dialog (uses google for now) --- read.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'read.html') diff --git a/read.html b/read.html index 7f94593..74a39bd 100644 --- a/read.html +++ b/read.html @@ -137,11 +137,13 @@ + @@ -539,8 +541,13 @@ $('#dict-modal').on('shown.bs.modal', function() { $(".dict_result").scrollTop(0); + }) + $(".dict_search_btn").on("click", function() { + $("#dict-modal").modal('hide'); + window.open("https://google.com/search?q=" + $(".dict_query").val()); + }); $('#toc-modal').on('shown.bs.modal', function() { function process_toc_sublist(row, list, nest) { -- cgit v1.2.3