Adjust confirmation tooltip visibility and message
This commit is contained in:
parent
9ee6d23aca
commit
f0b70dc24f
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue