Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
12f92788
Commit
12f92788
authored
Jan 22, 2019
by
flothoni
Committed by
Mathieu Giraud
Feb 05, 2019
Browse files
Segmenter.js; add a switch to hide multiple tag span of no clones are selected
Also add a title to the div for accessibility. Link to
#1292
parent
2cc7e88b
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/model.js
View file @
12f92788
...
...
@@ -1950,8 +1950,8 @@ changeAlleleNotation: function(alleleNotation) {
* */
openTagSelector
:
function
(
clonesIDs
,
e
)
{
var
self
=
this
;
cloneID
=
typeof
cloneID
!==
'
undefined
'
?
cloneID
:
this
.
cloneID
;
this
.
tagSelectorList
.
removeAllChildren
();
clonesIDs
=
clonesIDs
!==
undefined
?
clonesIDs
:
this
.
clonesIDs
;
this
.
clonesIDs
=
clonesIDs
var
buildTagSelector
=
function
(
i
)
{
...
...
browser/js/segmenter.js
View file @
12f92788
...
...
@@ -375,17 +375,16 @@ Segment.prototype = {
// Tag/Star
var
span_star
=
document
.
createElement
(
'
span
'
)
span_star
.
setAttribute
(
'
class
'
,
'
starBox
'
);
span_star
.
setAttribute
(
"
title
"
,
'
Tag selected clones
'
);
span_star
.
onclick
=
function
(
e
)
{
self
.
m
.
openTagSelector
(
m
.
getSelected
(),
e
);
if
(
m
.
getSelected
().
length
>
0
)
{
self
.
m
.
openTagSelector
(
m
.
getSelected
(),
e
);
}
}
span_star
.
id
=
self
.
index
var
tag_icon
=
document
.
createElement
(
'
i
'
)
tag_icon
.
id
=
"
tag_icon__multiple
"
tag_icon
.
title
=
"
clone_tag_multiple
"
tag_icon
.
classList
.
add
(
'
icon-star-2
'
)
span_star
.
appendChild
(
tag_icon
)
div_stats
.
appendChild
(
span_star
);
div
.
appendChild
(
div_stats
)
div_stats
.
appendChild
(
span_fixsegmenter
);
...
...
@@ -1058,6 +1057,12 @@ Segment.prototype = {
}
$
(
"
.stats_content
"
).
prop
(
'
title
'
,
s
)
}
if
(
this
.
m
.
getSelected
().
length
>
0
){
$
(
"
#tag_icon__multiple
"
).
css
(
"
display
"
,
""
)
}
else
{
$
(
"
#tag_icon__multiple
"
).
css
(
"
display
"
,
"
none
"
)
}
},
/**
...
...
Write
Preview
Supports
Markdown
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