diff --git a/Gruntfile.js b/Gruntfile.js index 17024c1..0ce1a93 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: { diff --git a/app/components/filters/filters.js b/app/components/filters/filters.js index d657701..5e3d66d 100644 --- a/app/components/filters/filters.js +++ b/app/components/filters/filters.js @@ -3,7 +3,7 @@ angular.module('adagios.filters', []) .filter('timeElapsed', [function () { - return function(input) { + return function (input) { return moment.unix(input).fromNow(); - } + }; }]); diff --git a/app/sidebar/sidebar.js b/app/sidebar/sidebar.js index 23d8ccb..c294687 100644 --- a/app/sidebar/sidebar.js +++ b/app/sidebar/sidebar.js @@ -3,9 +3,8 @@ angular.module('adagios.sidebar', []) .controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) { - return; - - }]) + angular.noop(); + }]) .directive('adgSidebar', function () { return { diff --git a/app/table/table.js b/app/table/table.js index fe52aaa..b9b7ead 100644 --- a/app/table/table.js +++ b/app/table/table.js @@ -25,7 +25,7 @@ angular.module('adagios.table', ['ngRoute', }); }); - new GetServices(requestFields,) + new GetServices(requestFields, filters) .success(function (data) { $scope.entries = data; });