Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shuttleworth foundation
ca-cla-chooser
Commits
2a961e1b
Commit
2a961e1b
authored
Nov 04, 2014
by
Jon Phillips
Browse files
added fixes to make finallink creation work on subdirectories
parent
dcfe59fc
Changes
1
Show whitespace changes
Inline
Side-by-side
js/chooser.js
View file @
2a961e1b
...
...
@@ -1252,7 +1252,8 @@ function testApplyPage ()
var
finalLink
=
"
http://
"
+
window
.
location
.
host
+
"
/?
"
+
var
finalLink
=
document
.
URL
.
substr
(
0
,
document
.
URL
.
lastIndexOf
(
'
/
'
))
+
"
/?
"
+
finalQueryString
;
// console.log("finalLink: " + finalLink);
...
...
@@ -1329,7 +1330,7 @@ function testApplyPage ()
else
tmpFinalLink
=
shortUrl
;
$
(
"
.final-link
"
).
attr
(
"
href
"
,
'
?
'
+
finalLink
);
$
(
"
.final-link
"
).
attr
(
"
href
"
,
finalLink
);
var
finalBrew
=
"
<section><h4>Recreate this Contributor License Agreement</h4>
\n
"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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