Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
9dd2fe1a
Commit
9dd2fe1a
authored
Nov 07, 2017
by
sajolida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more precise when replacing HTML content with the filename
parent
1cc8cc7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
wiki/src/install/inc/js/dave_2.js
wiki/src/install/inc/js/dave_2.js
+3
-4
wiki/src/install/inc/steps/download_2.inline.html
wiki/src/install/inc/steps/download_2.inline.html
+1
-1
No files found.
wiki/src/install/inc/js/dave_2.js
View file @
9dd2fe1a
...
...
@@ -4,9 +4,7 @@ document.addEventListener('DOMContentLoaded', function() {
return
;
}
if
(
event
.
data
.
action
===
'
verifying
'
){
showVerifyingDownload
();
var
element
=
document
.
getElementById
(
"
verifying-download
"
);
element
.
innerHTML
=
"
Verifying:
"
+
event
.
data
.
fileName
;
showVerifyingDownload
(
event
.
data
.
fileName
);
}
else
if
(
event
.
data
.
action
===
'
verification-failed
'
){
showVerificationResult
(
'
failed
'
);
...
...
@@ -129,8 +127,9 @@ document.addEventListener('DOMContentLoaded', function() {
toggleContinueLink
(
'
direct
'
,
'
skip-verification-direct
'
);
}
function
showVerifyingDownload
()
{
function
showVerifyingDownload
(
filename
)
{
hide
(
document
.
getElementById
(
'
verify-download-wrapper
'
));
document
.
getElementById
(
"
filename
"
).
innerHTML
=
filename
;
show
(
document
.
getElementById
(
'
verifying-download
'
));
}
...
...
wiki/src/install/inc/steps/download_2.inline.html
View file @
9dd2fe1a
...
...
@@ -52,7 +52,7 @@
<input
id=
"verify-download"
type=
"file"
/>
</label>
<div
id=
"verifying-download"
>
<p>
Verifying $FILENAME
…
</p>
<p>
Verifying
<span
id=
"filename"
>
$FILENAME
</span>
…
</p>
<div
class=
"progress"
>
<div
id=
"progress-bar"
class=
"progress-bar"
role=
"progressbar"
style=
"width: 0%"
aria-valuenow=
"0"
aria-valuemin=
"0"
aria-valuemax=
"100"
></div>
</div>
...
...
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