1
0
Fork 0
forked from 0x2620/oxjs

allow for annotation highlight if same value

This commit is contained in:
rolux 2018-10-12 14:46:38 +02:00
commit 6eb3b0bb6f
4 changed files with 21 additions and 14 deletions

View file

@ -485,12 +485,14 @@ Ox.ArrayEditable = function(options, self) {
};
that.updateItemGroup = function() {
var group = self.options.items[self.selected].group;
var group = self.selected > - 1 ? self.options.items[self.selected].group : '';
self.$items.forEach(function($item, index) {
$item[
self.options.items[index].group == group ? 'addClass' : 'removeClass'
self.options.highlightGroup && group
&& self.options.items[index].group == group
? 'addClass' : 'removeClass'
]('OxGroup');
})
});
}
return that;