Adjust confirmation tooltip visibility and message

This commit is contained in:
Raimund Schlüßler 2018-09-10 21:21:18 +02:00
parent 9ee6d23aca
commit f0b70dc24f
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ angular.module('Tasks').controller('ListController', [
this._$scope.color = '#31CC7C';
this._$scope.deleteMessage = function (calendar) {
return t('tasks', 'This will delete the Calendar "%s" and all of its entries.').replace('%s', calendar.displayname);
return t('tasks', 'This will delete the calendar "%s" and all corresponding events and tasks.').replace('%s', calendar.displayname);
};
this._$scope["delete"] = function(calendar) {

View file

@ -51,8 +51,7 @@ angular.module('Tasks').controller('ConfirmationController', [
}
e.stopPropagation();
_$scope.activate();
$element.children('.confirmation-confirm')
.tooltip({title: message, container: 'body', placement: 'right'});
$element.tooltip({title: message, container: 'body', placement: 'right', trigger: 'manual'}).tooltip('show');
$element.addClass("confirmed");
});
@ -67,6 +66,7 @@ angular.module('Tasks').controller('ConfirmationController', [
this._$scope.documentClick = function () {
$element.removeClass("confirmed");
$element.tooltip('hide');
};
this._$scope.activate = function () {