summaryrefslogtreecommitdiff
path: root/searx/static/oscar/js/searx_src/autocompleter.js
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-01 17:48:12 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-01 17:48:12 +0100
commit9f12605f7ebc9ca5575fc4ee9900e0e821366c4d (patch)
treecbb1e9c475134ebbc22edefa4128b0a48f1e5770 /searx/static/oscar/js/searx_src/autocompleter.js
parente3957d6adf5298dbc009a0892f5c088c397c586b (diff)
[enh] themes static content refactor
Diffstat (limited to 'searx/static/oscar/js/searx_src/autocompleter.js')
-rw-r--r--searx/static/oscar/js/searx_src/autocompleter.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/searx/static/oscar/js/searx_src/autocompleter.js b/searx/static/oscar/js/searx_src/autocompleter.js
deleted file mode 100644
index 561bff35a..000000000
--- a/searx/static/oscar/js/searx_src/autocompleter.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * searx is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * searx is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with searx. If not, see < http://www.gnu.org/licenses/ >.
- *
- * (C) 2014 by Thomas Pointhuber, <thomas.pointhuber@gmx.at>
- */
-
-if(searx.autocompleter) {
- searx.searchResults = new Bloodhound({
- datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
- queryTokenizer: Bloodhound.tokenizers.whitespace,
- remote: '/autocompleter?q=%QUERY'
- });
- searx.searchResults.initialize();
-}
-
-$(document).ready(function(){
- if(searx.autocompleter) {
- $('#q').typeahead(null, {
- name: 'search-results',
- displayKey: function(result) {
- return result;
- },
- source: searx.searchResults.ttAdapter()
- });
- }
-});