Browse Source

Merge pull request #2205 from dalf/fix-simple-theme-autocomplete

[fix] simple theme: fix autocomplete
Alexandre Flament 4 years ago
parent
commit
375cbd12b3

+ 1 - 1
searx/static/themes/simple/css/searx-rtl.css

@@ -1,4 +1,4 @@
-/*! searx | 04-06-2020 |  */
+/*! searx | 19-09-2020 | https://github.com/asciimoo/searx */
 /*
 /*
 * searx, A privacy-respecting, hackable metasearch engine
 * searx, A privacy-respecting, hackable metasearch engine
 *
 *

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/simple/css/searx-rtl.min.css


+ 1 - 1
searx/static/themes/simple/css/searx.css

@@ -1,4 +1,4 @@
-/*! searx | 04-06-2020 |  */
+/*! searx | 19-09-2020 | https://github.com/asciimoo/searx */
 /*
 /*
 * searx, A privacy-respecting, hackable metasearch engine
 * searx, A privacy-respecting, hackable metasearch engine
 *
 *

File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/simple/css/searx.min.css


+ 1 - 1
searx/static/themes/simple/js/searx.head.min.js

@@ -1,4 +1,4 @@
-/*! simple/searx.min.js | 15-06-2020 |  */
+/*! simple/searx.min.js | 19-09-2020 | https://github.com/asciimoo/searx */
 
 
 (function(t,e){"use strict";var a=e.currentScript||function(){var t=e.getElementsByTagName("script");return t[t.length-1]}();t.searx={touch:"ontouchstart"in t||t.DocumentTouch&&document instanceof DocumentTouch||false,method:a.getAttribute("data-method"),autocompleter:a.getAttribute("data-autocompleter")==="true",search_on_category_select:a.getAttribute("data-search-on-category-select")==="true",infinite_scroll:a.getAttribute("data-infinite-scroll")==="true",static_path:a.getAttribute("data-static-path"),no_item_found:a.getAttribute("data-no-item-found")};e.getElementsByTagName("html")[0].className=t.searx.touch?"js touch":"js"})(window,document);
 (function(t,e){"use strict";var a=e.currentScript||function(){var t=e.getElementsByTagName("script");return t[t.length-1]}();t.searx={touch:"ontouchstart"in t||t.DocumentTouch&&document instanceof DocumentTouch||false,method:a.getAttribute("data-method"),autocompleter:a.getAttribute("data-autocompleter")==="true",search_on_category_select:a.getAttribute("data-search-on-category-select")==="true",infinite_scroll:a.getAttribute("data-infinite-scroll")==="true",static_path:a.getAttribute("data-static-path"),no_item_found:a.getAttribute("data-no-item-found")};e.getElementsByTagName("html")[0].className=t.searx.touch?"js touch":"js"})(window,document);
 //# sourceMappingURL=searx.head.min.js.map
 //# sourceMappingURL=searx.head.min.js.map

+ 4 - 0
searx/static/themes/simple/js/searx.js

@@ -1531,6 +1531,10 @@ module.exports = AutoComplete;
           Url: "./autocompleter",
           Url: "./autocompleter",
           EmptyMessage: searx.no_item_found,
           EmptyMessage: searx.no_item_found,
           HttpMethod: searx.method,
           HttpMethod: searx.method,
+          HttpHeaders: {
+            "Content-type": "application/x-www-form-urlencoded",
+            "X-Requested-With": "XMLHttpRequest"
+          },
           MinChars: 4,
           MinChars: 4,
           Delay: 300,
           Delay: 300,
         }, "#" + qinput_id);
         }, "#" + qinput_id);

File diff suppressed because it is too large
+ 1 - 1
searx/static/themes/simple/js/searx.min.js


File diff suppressed because it is too large
+ 0 - 0
searx/static/themes/simple/js/searx.min.js.map


+ 4 - 0
searx/static/themes/simple/js/searx_src/searx_search.js

@@ -75,6 +75,10 @@
           Url: "./autocompleter",
           Url: "./autocompleter",
           EmptyMessage: searx.no_item_found,
           EmptyMessage: searx.no_item_found,
           HttpMethod: searx.method,
           HttpMethod: searx.method,
+          HttpHeaders: {
+            "Content-type": "application/x-www-form-urlencoded",
+            "X-Requested-With": "XMLHttpRequest"
+          },
           MinChars: 4,
           MinChars: 4,
           Delay: 300,
           Delay: 300,
         }, "#" + qinput_id);
         }, "#" + qinput_id);

Some files were not shown because too many files changed in this diff