Gitlab CSE Unil
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
M. Chardon
ADIM
Commits
7deeba34
Commit
7deeba34
authored
Mar 04, 2018
by
M. Chardon
Browse files
correction sur les yeux (affichage annotations partagées)
parent
962407cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
adim_project/adim_app/static/_src/adim/ui.js
View file @
7deeba34
...
...
@@ -1120,15 +1120,16 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
showUserLayerName
(
!
$
(
"
#btn-layers-hidenames
"
).
hasClass
(
"
active
"
));
}
var
getListItem
=
_
.
memoize
(
/*
var getListItem = _.memoize(
function (layer) {
return usersList.find("li[data-layer-id=" + layer.id + "]");
},
function(l){ return l.id }
);
);
*/
function
onUserLayerVisChange
(
layer
,
visible
)
{
updateUserLayerState
(
getListItem
(
layer
),
visible
);
var
layerListIem
=
usersList
.
find
(
"
li[data-layer-id=
"
+
layer
.
id
+
"
]
"
);
updateUserLayerState
(
layerListIem
,
visible
);
}
...
...
@@ -1182,7 +1183,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
function
toggleAll
(
show
)
{
var
s
=
show
;
usersList
.
find
(
"
.list-group-item
"
).
each
(
function
(
i
,
layer
){
s
=
$
(
layer
).
is
(
"
.selected
"
)
?
true
:
show
;
s
=
show
;
//
$(layer).is(".selected") ? true : show;
toggleLayer
(
$
(
layer
),
s
);
});
}
...
...
@@ -1201,7 +1202,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
usersList
.
on
(
'
click
'
,
"
.list-group-item
"
,
function
()
{
selectLayerListItem
(
this
,
false
);
//
selectLayerListItem(this, false);
toggleLayer
(
$
(
this
),
true
);
});
...
...
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