JSLint: filters, table, sidebar
This commit is contained in:
parent
c68d470f5d
commit
3a70029aba
@ -57,7 +57,8 @@ module.exports = function (grunt) {
|
|||||||
nomen: true,
|
nomen: true,
|
||||||
predef: [ // Global variables
|
predef: [ // Global variables
|
||||||
'angular', 'inject', 'JustGage',
|
'angular', 'inject', 'JustGage',
|
||||||
'describe', 'beforeEach', 'it', 'expect'
|
'describe', 'beforeEach', 'it', 'expect',
|
||||||
|
'moment'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
angular.module('adagios.filters', [])
|
angular.module('adagios.filters', [])
|
||||||
|
|
||||||
.filter('timeElapsed', [function () {
|
.filter('timeElapsed', [function () {
|
||||||
return function(input) {
|
return function (input) {
|
||||||
return moment.unix(input).fromNow();
|
return moment.unix(input).fromNow();
|
||||||
}
|
};
|
||||||
}]);
|
}]);
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
angular.module('adagios.sidebar', [])
|
angular.module('adagios.sidebar', [])
|
||||||
|
|
||||||
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
|
.controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) {
|
||||||
return;
|
angular.noop();
|
||||||
|
}])
|
||||||
}])
|
|
||||||
|
|
||||||
.directive('adgSidebar', function () {
|
.directive('adgSidebar', function () {
|
||||||
return {
|
return {
|
||||||
|
@ -25,7 +25,7 @@ angular.module('adagios.table', ['ngRoute',
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
new GetServices(requestFields,)
|
new GetServices(requestFields, filters)
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
$scope.entries = data;
|
$scope.entries = data;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user