Changed class name for hiding
This commit is contained in:
parent
8895c56c35
commit
e1ed915139
@ -188,11 +188,11 @@ angular.module('adagios.table', ['adagios.live',
|
||||
angular.forEach(items, function (item) {
|
||||
|
||||
if (previous === item[fieldToCompare]) {
|
||||
item[new_attr] = 'hide-childrens';
|
||||
item[new_attr] = 'state--rmChild';
|
||||
} else {
|
||||
previous = item[fieldToCompare].slice(0);
|
||||
if (!!item[new_attr]) {
|
||||
item[new_attr] = item[new_attr].replace("hide-childrens", "");
|
||||
item[new_attr] = item[new_attr].replace("state--rmChild", "");
|
||||
}
|
||||
}
|
||||
newItems.push(item);
|
||||
|
Loading…
Reference in New Issue
Block a user