diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index 1746df034..7931945e6 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -20,7 +20,7 @@ * */ -/** global: oc_defaults, OC */ +/* global oc_defaults OC */ app.controller('BoardController', function ($rootScope, $scope, $stateParams, StatusService, BoardService, StackService, CardService, LabelService, $state, $transitions, $filter) { $scope.sidebar = $rootScope.sidebar; @@ -61,9 +61,9 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St }); $scope.setPageTitle = function () { if (BoardService.getCurrent()) { - document.title = BoardService.getCurrent().title + " | Deck - " + oc_defaults.name; + document.title = BoardService.getCurrent().title + ' | Deck - ' + oc_defaults.name; } else { - document.title = "Deck - " + oc_defaults.name; + document.title = 'Deck - ' + oc_defaults.name; } }; @@ -77,7 +77,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St $scope.$watch(function() { return $scope.params.filter; }, function (filter) { - if (filter === "archive") { + if (filter === 'archive') { $scope.loadArchived(); } else { $scope.loadDefault(); @@ -90,7 +90,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St $scope.refreshData(); }, true); $scope.refreshData = function () { - if ($scope.params.filter === "archive") { + if ($scope.params.filter === 'archive') { $scope.filterData('-lastModified', $scope.searchText); } else { $scope.filterData('order', $scope.searchText); diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 8f830db04..b3baa82bf 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -20,8 +20,7 @@ * */ -/* global app */ -/* global moment */ +/* global app moment */ app.controller('CardController', function ($scope, $rootScope, $routeParams, $location, $stateParams, $interval, $timeout, BoardService, CardService, StackService, StatusService) { $scope.sidebar = $rootScope.sidebar; diff --git a/js/service/BoardService.js b/js/service/BoardService.js index eaf1ed84f..34c6d0eca 100644 --- a/js/service/BoardService.js +++ b/js/service/BoardService.js @@ -20,7 +20,7 @@ * */ -/** global: OC */ +/* global app OC */ app.factory('BoardService', function (ApiService, $http, $q) { var BoardService = function ($http, ep, $q) { ApiService.call(this, $http, ep, $q);