De-implement angular work package column filters

pull/913/head
Till Breuer 11 years ago
parent 610f39af5c
commit 4f7bc83dbb
  1. 23
      app/assets/javascripts/angular/filters/column_filters.js

@ -33,26 +33,5 @@ openprojectApp
return object[map[option]]();
}
};
})
// work packages
.filter('columnContent', function(){
return function(object, option) {
return object[option]; // TODO formatting by type
};
})
.filter('columnNamedChildContent', function(){
// TODO RS: This is just a temporary solution to display some text for child objects
return function(object, option) {
var p = object[option];
switch(typeof(p)) {
case 'string':
return p;
case 'object':
return p['name'];
default:
return 'None';
}
};
});

Loading…
Cancel
Save