Revision 6242a73b
Added by Eric Helms about 10 years ago
engines/bastion/app/assets/javascripts/bastion/widgets/nutupane.factory.js | ||
---|---|---|
return self.load(true);
|
||
};
|
||
|
||
self.removeRow = function (id) {
|
||
self.removeRow = function (id, field) {
|
||
var foundItem, table = self.table;
|
||
|
||
field = field || 'id';
|
||
|
||
angular.forEach(table.rows, function (item) {
|
||
if (item.id === id) {
|
||
if (item[field] === id) {
|
||
foundItem = item;
|
||
}
|
||
});
|
||
|
||
table.rows = _.reject(table.rows, function (item) {
|
||
return item.id === id;
|
||
return item[field] === id;
|
||
}, this);
|
||
|
||
table.resource.total = table.resource.total - 1;
|
||
... | ... | |
table.numSelected = table.numSelected - 1;
|
||
}
|
||
|
||
|
||
return self.table.rows;
|
||
};
|
||
|
Also available in: Unified diff
Content Views: Adding filter UI support for Packages, Errata and Package groups.