From 1f31104630fd5c331fe408cee00fc485c9e51757 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Mon, 10 Apr 2017 17:27:08 -0700 Subject: [PATCH] Definition in search results (#2712) --- js/menu.js | 17 ++++++++++++++--- search.md | 20 ++++++++++++++++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/js/menu.js b/js/menu.js index 26222198e3..7146eba63e 100644 --- a/js/menu.js +++ b/js/menu.js @@ -239,10 +239,21 @@ function renderTopicsByTagTable(tagToLookup,divID) } function renderTagsPage() { - if(window.location.pathname.indexOf("/glossary/")>-1) + if(window.location.pathname.indexOf("/glossary/")>-1 || window.location.pathname.indexOf("/search/")>-1) { - var tagToLookup = decodeURI(queryString().term); - $("#keyword").html(tagToLookup); + var tagToLookup; + if (window.location.pathname.indexOf("/glossary/")>-1) + { + // Get ?term= + tagToLookup = decodeURI(queryString().term); + $("#keyword").html(tagToLookup); + } + else + { + // Get ?q= + tagToLookup = decodeURI(queryString().q); + } + // Get the term and definition for (i=0;i" tree: false --- @@ -21,6 +21,9 @@ tree: false .gsc-control-cse, .gsc-control-cse-en { padding: 0px !important; } .gsc-result-info { padding-bottom: 0px !important; } + +
+
- + +
+ +