Gitlab CSE Unil

Commit 7deeba34 authored by M. Chardon's avatar M. Chardon
Browse files

correction sur les yeux (affichage annotations partagées)

parent 962407cd
......@@ -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);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment