Merge branch 'master' into prepare-0.3.0-beta1

This commit is contained in:
Julius Härtl 2017-12-17 18:25:52 +01:00 коммит произвёл GitHub
Родитель 66cfa72839 d33cce3725
Коммит cd81192cae
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 23 добавлений и 20 удалений

Просмотреть файл

@ -353,6 +353,7 @@ input.input-inline {
.as-sortable-placeholder {
margin: 10px 10px 20px 10px;
border: 1px dashed $color-darkgrey;
min-height: 96px;
&:last-child {
margin: 10px;
@ -360,7 +361,7 @@ input.input-inline {
}
ul {
> ul {
display: flex;
flex-direction: column;
}
@ -664,8 +665,9 @@ input.input-inline {
.section-header {
border-bottom: 1px solid $color-lightgrey;
display: flex;
flex-shrink: 0;
margin-bottom: 5px;
margin-top: 20px;
margin-top: 10px;
h4 {
padding-top: 5px;
padding-bottom: 5px;

Просмотреть файл

@ -67,19 +67,18 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
header.find('.save-indicator.saved').hide();
};
$interval(function() {
$scope.cardEditDescriptionAutosave = function() {
var currentTime = Date.now();
var timeSinceEdit = currentTime-$scope.status.lastEdit;
if (timeSinceEdit > 1000 && $scope.status.lastEdit > $scope.status.lastSave) {
$scope.status.lastSave = currentTime;
var header = $('.section-content.card-description');
header.find('.save-indicator.unsaved').fadeIn(500);
CardService.update(CardService.getCurrent()).then(function (data) {
header.find('.save-indicator.unsaved').hide();
header.find('.save-indicator.saved').fadeIn(250).fadeOut(1000);
});
}
};
var currentTime = Date.now();
var timeSinceEdit = currentTime-$scope.status.lastEdit;
if (timeSinceEdit > 1000 && $scope.status.lastEdit > $scope.status.lastSave) {
$scope.status.lastSave = currentTime;
var header = $('.section-header.card-description');
header.find('.save-indicator.unsaved').fadeIn(500);
CardService.update(CardService.getCurrent()).then(function (data) {
var header = $('.section-header.card-description');
header.find('.save-indicator.unsaved').hide();
header.find('.save-indicator.saved').fadeIn(250).fadeOut(1000);
});
}
}, 500);
// handle rename to update information on the board as well
@ -95,18 +94,20 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
var header = $('.section-content.card-description');
header.find('.save-indicator.unsaved').hide();
header.find('.save-indicator.saved').fadeIn(500).fadeOut(1000);
StackService.updateCard(card);
});
StackService.updateCard(card);
};
$scope.labelAssign = function (element, model) {
CardService.assignLabel($scope.cardId, element.id);
var card = CardService.getCurrent();
StackService.updateCard(card);
CardService.assignLabel($scope.cardId, element.id).then(function (data) {
StackService.updateCard(CardService.getCurrent());
});
};
$scope.labelRemove = function (element, model) {
CardService.removeLabel($scope.cardId, element.id);
CardService.removeLabel($scope.cardId, element.id).then(function (data) {
StackService.updateCard(CardService.getCurrent());
});
};
$scope.setDuedate = function (duedate) {