format date differently if date is today

This commit is contained in:
Athou
2013-05-01 15:51:31 +02:00
parent 6f9e00339f
commit 61c7592363
7 changed files with 107 additions and 83 deletions

View File

@@ -258,17 +258,17 @@ module.controller('CategoryDetailsCtrl', ['$scope', '$state', '$stateParams', 'F
return parseInt($stateParams._id, 10) != $stateParams._id;
};
$scope.filterCurrent = function(elem) {
if (!$scope.category)
return true;
return elem.id != $scope.category.id;
};
$scope.filterCurrent = function(elem) {
if (!$scope.category)
return true;
return elem.id != $scope.category.id;
};
CategoryService.get(function() {
if ($scope.isMeta()) {
$scope.category = {
id : $stateParams._id,
name : $stateParams._id,
name : $stateParams._id
};
return;
}