Changed class name for hiding

This commit is contained in:
Philippe Pepos Petitclerc 2015-03-20 11:12:04 -04:00 committed by Frédéric Vachon
parent 8895c56c35
commit e1ed915139

View File

@ -188,11 +188,11 @@ angular.module('adagios.table', ['adagios.live',
angular.forEach(items, function (item) { angular.forEach(items, function (item) {
if (previous === item[fieldToCompare]) { if (previous === item[fieldToCompare]) {
item[new_attr] = 'hide-childrens'; item[new_attr] = 'state--rmChild';
} else { } else {
previous = item[fieldToCompare].slice(0); previous = item[fieldToCompare].slice(0);
if (!!item[new_attr]) { 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); newItems.push(item);