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
vidjil
vidjil
Commits
0ce0bd7d
Commit
0ce0bd7d
authored
Nov 12, 2021
by
Thonier Florian
Browse files
tools.js; row1 function; add condition to be more robust
parent
cea4d80f
Pipeline
#340934
passed with stages
in 45 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/js/tools.js
View file @
0ce0bd7d
...
...
@@ -948,7 +948,7 @@ var header = function(content, title, time_length) {
return
"
<tr id='modal_header_
"
+
title
+
"
'><td class='header' colspan='
"
+
(
time_length
+
1
)
+
"
'>
"
+
content
+
"
</td></tr>
"
;
}
var
row_1
=
function
(
item
,
content
,
title
,
time_length
)
{
title
=
(
title
=
=
undefined
)
?
clean_title
(
item
)
:
clean_title
(
t
it
l
e
)
title
=
(
title
!
=
undefined
)
?
clean_title
(
title
)
:
(
(
item
==
undefined
)
?
""
:
clean_title
(
ite
m
)
)
return
"
<tr id='modal_line_
"
+
title
+
"
'><td id='modal_line_title_
"
+
title
+
"
'>
"
+
item
+
"
</td><td colspan='
"
+
time_length
+
"
' id='modal_line_value_
"
+
title
+
"
'>
"
+
content
+
"
</td></tr>
"
;
}
var
row_from_list
=
function
(
item
,
content
,
title
,
time_length
)
{
...
...
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