Fix some codestyle issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
1ace5de9e6
commit
7200e17d33
@@ -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) {
|
app.controller('BoardController', function ($rootScope, $scope, $stateParams, StatusService, BoardService, StackService, CardService, LabelService, $state, $transitions, $filter) {
|
||||||
|
|
||||||
$scope.sidebar = $rootScope.sidebar;
|
$scope.sidebar = $rootScope.sidebar;
|
||||||
@@ -61,9 +61,9 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
|
|||||||
});
|
});
|
||||||
$scope.setPageTitle = function () {
|
$scope.setPageTitle = function () {
|
||||||
if (BoardService.getCurrent()) {
|
if (BoardService.getCurrent()) {
|
||||||
document.title = BoardService.getCurrent().title + " | Deck - " + oc_defaults.name;
|
document.title = BoardService.getCurrent().title + ' | Deck - ' + oc_defaults.name;
|
||||||
} else {
|
} 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() {
|
$scope.$watch(function() {
|
||||||
return $scope.params.filter;
|
return $scope.params.filter;
|
||||||
}, function (filter) {
|
}, function (filter) {
|
||||||
if (filter === "archive") {
|
if (filter === 'archive') {
|
||||||
$scope.loadArchived();
|
$scope.loadArchived();
|
||||||
} else {
|
} else {
|
||||||
$scope.loadDefault();
|
$scope.loadDefault();
|
||||||
@@ -90,7 +90,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
|
|||||||
$scope.refreshData();
|
$scope.refreshData();
|
||||||
}, true);
|
}, true);
|
||||||
$scope.refreshData = function () {
|
$scope.refreshData = function () {
|
||||||
if ($scope.params.filter === "archive") {
|
if ($scope.params.filter === 'archive') {
|
||||||
$scope.filterData('-lastModified', $scope.searchText);
|
$scope.filterData('-lastModified', $scope.searchText);
|
||||||
} else {
|
} else {
|
||||||
$scope.filterData('order', $scope.searchText);
|
$scope.filterData('order', $scope.searchText);
|
||||||
|
|||||||
@@ -20,8 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* global app */
|
/* global app moment */
|
||||||
/* global moment */
|
|
||||||
|
|
||||||
app.controller('CardController', function ($scope, $rootScope, $routeParams, $location, $stateParams, $interval, $timeout, BoardService, CardService, StackService, StatusService) {
|
app.controller('CardController', function ($scope, $rootScope, $routeParams, $location, $stateParams, $interval, $timeout, BoardService, CardService, StackService, StatusService) {
|
||||||
$scope.sidebar = $rootScope.sidebar;
|
$scope.sidebar = $rootScope.sidebar;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** global: OC */
|
/* global app OC */
|
||||||
app.factory('BoardService', function (ApiService, $http, $q) {
|
app.factory('BoardService', function (ApiService, $http, $q) {
|
||||||
var BoardService = function ($http, ep, $q) {
|
var BoardService = function ($http, ep, $q) {
|
||||||
ApiService.call(this, $http, ep, $q);
|
ApiService.call(this, $http, ep, $q);
|
||||||
|
|||||||
Reference in New Issue
Block a user