From 184fba3a93696735f7a7ef6b88242f598594c7af Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 7 Jun 2024 18:35:56 +0000 Subject: Add separate button for Xapian search This will be temporary in the longer run, but can stay until all functionality is reproduced. --- gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gn2/wqflask/static/new') diff --git a/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js b/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js index 2875eabd..4310c4a8 100644 --- a/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js +++ b/gn2/wqflask/static/new/javascript/dataset_select_menu_orig.js @@ -329,3 +329,8 @@ $("#make_default").click(make_default); $("#btsearch").click(function() { $("#searchform").prop("action", "/search") }); + +$("#xapianSearch").click(function() { + $("input[name='search_type']").val("xapian") + $("#searchform").prop("action", "/search") +}); -- cgit v1.2.3