forked from 0x2620/oxjs
allow for annotation highlight if same value
This commit is contained in:
parent
9b3c7ddf20
commit
6eb3b0bb6f
4 changed files with 21 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue