Rework js controllers fixes #3

This commit is contained in:
Julius Haertl
2016-08-15 12:28:51 +02:00
parent e221d70efb
commit 9d4ba71a3b
11 changed files with 57 additions and 415 deletions

View File

@@ -20,20 +20,19 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
});
// handle rename to update information on the board as well
$scope.renameCard = function(card) {
$scope.cardRename = function(card) {
CardService.rename(card).then(function(data) {
StackService.updateCard(card);
$scope.status.renameCard = false;
});
};
$scope.updateCard = function(card) {
$scope.cardUpdate = function(card) {
CardService.update(CardService.getCurrent());
$scope.status.description = false;
}
$scope.editDescription = function() {
$scope.status.description = true;
$scope.cardEditDescription = function() {
$scope.status.cardEditDescription = true;
}
$scope.labelAssign = function(element, model) {