Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
e2075986
Commit
e2075986
authored
3 years ago
by
Patrick
Browse files
Options
Download
Email Patches
Plain Diff
fix language bug
parent
74207c59
master
revert-205bb8ef
rosanny-202111
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/js/language.js
+1
-1
public/js/language.js
public/js/search.js
+11
-1
public/js/search.js
with
12 additions
and
2 deletions
+12
-2
public/js/language.js
+
1
-
1
View file @
e2075986
...
...
@@ -16,7 +16,7 @@ $('.selectpicker').change(function(){
// alert($(this).val());
})
var
lang_setting
=
"
2
"
var
lang_setting
=
"
1
"
function
language
(
lang
){
//Change the language settings of the general Elements
...
...
This diff is collapsed.
Click to expand it.
public/js/search.js
+
11
-
1
View file @
e2075986
...
...
@@ -76,6 +76,8 @@ $(document).ready(function () {
addcontent
(
stuff
[
i
]);
//Do something
}
changeLang
();
});
// get paper content is commented out for back up
...
...
@@ -98,6 +100,9 @@ $(document).ready(function () {
});
function
changeLang
()
{
var
userLang
=
navigator
.
language
||
navigator
.
userLanguage
;
console
.
log
(
"
The language is:
"
+
userLang
);
if
(
userLang
.
includes
(
"
de
"
))
{
...
...
@@ -106,8 +111,13 @@ $(document).ready(function () {
console
.
log
(
select1
)
select1
.
value
=
"
2
"
;
select1
.
dispatchEvent
(
new
Event
(
'
change
'
));
}
else
{
var
select1
=
document
.
getElementById
(
'
selectpicker1
'
);
console
.
log
(
select1
)
select1
.
value
=
"
1
"
;
select1
.
dispatchEvent
(
new
Event
(
'
change
'
));
}
}
);
}
// window.onload = function () {
// var e = document.getElementById("selectpicker1");
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets