Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
thg-website
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
TortoiseHg
thg-website
Commits
a08845c6afbe
Commit
a08845c6afbe
authored
4 years ago
by
vitidev
Browse files
Options
Downloads
Patches
Plain Diff
host independent language selector
parent
835caa3b466f
No related branches found
No related tags found
1 merge request
!8
host independent language selector
Pipeline
#9054
passed with stage
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/en/js/common.js
+2
-2
2 additions, 2 deletions
static/en/js/common.js
with
2 additions
and
2 deletions
static/en/js/common.js
+
2
−
2
View file @
a08845c6
/* *** Language Selector *** */
$
(
'
.headerWrapper select
'
).
change
(
function
(){
var
url
=
'
http://tortoisehg.org
/
'
;
var
url
=
window
.
location
.
protocol
.
concat
(
'
//
'
).
concat
(
window
.
location
.
hostname
).
concat
(
'
/
'
)
;
var
lang
=
$
(
this
).
val
();
if
(
lang
!=
'
en
'
)
{
if
(
lang
!=
=
'
en
'
)
{
url
+=
lang
+
'
/
'
;
}
window
.
location
.
href
=
url
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment