JSLint: filters, table, sidebar

This commit is contained in:
Frédéric Vachon 2015-01-28 14:04:44 -05:00
parent c68d470f5d
commit 3a70029aba
4 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,8 @@ module.exports = function (grunt) {
nomen: true,
predef: [ // Global variables
'angular', 'inject', 'JustGage',
'describe', 'beforeEach', 'it', 'expect'
'describe', 'beforeEach', 'it', 'expect',
'moment'
]
},
options: {

View File

@ -3,7 +3,7 @@
angular.module('adagios.filters', [])
.filter('timeElapsed', [function () {
return function(input) {
return function (input) {
return moment.unix(input).fromNow();
}
};
}]);

View File

@ -3,8 +3,7 @@
angular.module('adagios.sidebar', [])
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
return;
angular.noop();
}])
.directive('adgSidebar', function () {

View File

@ -25,7 +25,7 @@ angular.module('adagios.table', ['ngRoute',
});
});
new GetServices(requestFields,)
new GetServices(requestFields, filters)
.success(function (data) {
$scope.entries = data;
});