diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index ecb786b9..3bed20b5 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -10866,7 +10866,7 @@ requires that.triggerEvent('select', { 'in': item['in'], 'out': item.out, - 'layer': self.options.id + 'layer': self.options.id }); } function updateAnnotation(event, data) { @@ -10889,7 +10889,10 @@ requires that.removeItems = function(ids) { self.$annotations.removeItems(ids); } - + that.deselectItems = function() { + if(self.$annotations.options('selected')) + self.$annotations.options('selected',[]); + } return that; }; @@ -11976,7 +11979,14 @@ requires data.layer = layer.id; that.triggerEvent('removeAnnotations', data); }, - select: selectAnnotation, + select: function(event, data) { + self.options.layers.forEach(function(l, j) { + if(l.id != layer.id) { + self.$annotationPanel[j].deselectItems(); + } + }); + selectAnnotation(event, data); + }, submit: updateAnnotation }); self.$annotationPanel[i]