From 63f86340429b34039abebe12efe87c45d30cc3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 19 Dec 2014 16:39:49 +0100 Subject: [PATCH] allow getting the last query --- search/js/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/search/js/search.js b/search/js/search.js index f2ed58a8436..82d3c2c6691 100644 --- a/search/js/search.js +++ b/search/js/search.js @@ -83,6 +83,10 @@ var lastSize = 30; var lastResults = {}; + this.getLastQuery = function() { + return lastQuery; + }; + /** * Do a search query and display the results * @param {string} query the search query