JSLint: filters, table, sidebar
This commit is contained in:
parent
c68d470f5d
commit
3a70029aba
@ -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: {
|
||||
|
@ -3,7 +3,7 @@
|
||||
angular.module('adagios.filters', [])
|
||||
|
||||
.filter('timeElapsed', [function () {
|
||||
return function(input) {
|
||||
return function (input) {
|
||||
return moment.unix(input).fromNow();
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
@ -3,8 +3,7 @@
|
||||
angular.module('adagios.sidebar', [])
|
||||
|
||||
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
|
||||
return;
|
||||
|
||||
angular.noop();
|
||||
}])
|
||||
|
||||
.directive('adgSidebar', function () {
|
||||
|
@ -25,7 +25,7 @@ angular.module('adagios.table', ['ngRoute',
|
||||
});
|
||||
});
|
||||
|
||||
new GetServices(requestFields,)
|
||||
new GetServices(requestFields, filters)
|
||||
.success(function (data) {
|
||||
$scope.entries = data;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user