From b5290e52819ddb11ad3dc326469c531812fbc155 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 30 Aug 2018 14:31:36 +0200 Subject: [PATCH] open help text when searching for "how to use" --- frontend/api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/api.js b/frontend/api.js index e28a6fb..b7fca10 100644 --- a/frontend/api.js +++ b/frontend/api.js @@ -867,6 +867,9 @@ function formsubmit() { var q = form_str.getInputOrContentEditableValue().replace(/\u00a0/g, ' '); if (q === '') { sresults.innerHTML = '

Can\'t search for the empty string

'; + } else if (q.match(/how to use/i)) { + document.getElementById('helptext').classList.add('visible'); + document.getElementById('searchlinks').children[2].classList.add('active'); } else { sresults.innerHTML = ''; -- GitLab