summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/src/js/preferences.js
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-10-01 09:15:46 +0200
committerGitHub <noreply@github.com>2021-10-01 09:15:46 +0200
commit458575c221abcdbe3c0ffb633dd06f5f6d05bf2e (patch)
tree2e50ad12c760db799bf3ed69e5ed13834d3ccfdf /searx/static/themes/oscar/src/js/preferences.js
parentc74f45b1dfbc314db3cb41749111bc33d7243622 (diff)
parent1dfac73a64ba15034a16fc0639618bf85594b98b (diff)
downloadsearxng-458575c221abcdbe3c0ffb633dd06f5f6d05bf2e.tar.gz
searxng-458575c221abcdbe3c0ffb633dd06f5f6d05bf2e.zip
Merge pull request #361 from dalf/searxng-theme-oscar
SearXNG theme oscar
Diffstat (limited to 'searx/static/themes/oscar/src/js/preferences.js')
-rw-r--r--searx/static/themes/oscar/src/js/preferences.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/searx/static/themes/oscar/src/js/preferences.js b/searx/static/themes/oscar/src/js/preferences.js
index 25aac052f..d3a3a7d76 100644
--- a/searx/static/themes/oscar/src/js/preferences.js
+++ b/searx/static/themes/oscar/src/js/preferences.js
@@ -1,3 +1,10 @@
+/**
+ * @license
+ * (C) Copyright Contributors to the SearXNG project.
+ * (C) Copyright Contributors to the searx project (2014 - 2021).
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
$(document).ready(function(){
let engine_descriptions = null;
function load_engine_descriptions() {
@@ -7,7 +14,7 @@ $(document).ready(function(){
for (const [engine_name, description] of Object.entries(data)) {
let elements = $('[data-engine-name="' + engine_name + '"] .description');
for(const element of elements) {
- let source = ' (<i>' + searx.translations['Source'] + ':&nbsp;' + description[1] + '</i>)';
+ let source = ' (<i>' + searxng.translations.Source + ':&nbsp;' + description[1] + '</i>)';
element.innerHTML = description[0] + source;
}
}