Frontend: remove javascript console.log statements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -52,14 +52,11 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
|
|||||||
if (BoardService.isArchived() || CardService.getCurrent().archived) {
|
if (BoardService.isArchived() || CardService.getCurrent().archived) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var node = $event.target.nodeName;
|
|
||||||
if ($scope.card.archived || !$scope.boardservice.canEdit()) {
|
if ($scope.card.archived || !$scope.boardservice.canEdit()) {
|
||||||
console.log(node);
|
return false;
|
||||||
} else {
|
|
||||||
console.log("edit");
|
|
||||||
$scope.status.cardEditDescription = true;
|
|
||||||
}
|
}
|
||||||
console.log($scope.status.canEditDescription);
|
$scope.status.cardEditDescription = true;
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
// handle rename to update information on the board as well
|
// handle rename to update information on the board as well
|
||||||
$scope.cardRename = function (card) {
|
$scope.cardRename = function (card) {
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ app.factory('BoardService', function(ApiService, $http, $q){
|
|||||||
var _id = id;
|
var _id = id;
|
||||||
$http.post(this.baseUrl + '/' + id + '/deleteUndo').then(function (response) {
|
$http.post(this.baseUrl + '/' + id + '/deleteUndo').then(function (response) {
|
||||||
self.data[_id].deletedAt = 0;
|
self.data[_id].deletedAt = 0;
|
||||||
console.log(self.data[_id]);
|
|
||||||
deferred.resolve(response.data);
|
deferred.resolve(response.data);
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
deferred.reject('Deleting ' + self.endpoint + ' failed');
|
deferred.reject('Deleting ' + self.endpoint + ' failed');
|
||||||
|
|||||||
Reference in New Issue
Block a user