better popup logic
This commit is contained in:
parent
0b81781f35
commit
d4ffa7903f
@ -34,6 +34,7 @@ define([
|
|||||||
});
|
});
|
||||||
$els.fadeOut(null, function () {
|
$els.fadeOut(null, function () {
|
||||||
$els.remove();
|
$els.remove();
|
||||||
|
$('.tippy-popper').remove();
|
||||||
});
|
});
|
||||||
//APP.display();
|
//APP.display();
|
||||||
};
|
};
|
||||||
@ -91,7 +92,8 @@ define([
|
|||||||
.text(new Date(entry.ctime).toLocaleString())
|
.text(new Date(entry.ctime).toLocaleString())
|
||||||
.appendTo($taskDiv);*/
|
.appendTo($taskDiv);*/
|
||||||
$('<button>', {
|
$('<button>', {
|
||||||
'class': 'fa fa-times cp-task-remove btn btn-danger'
|
'class': 'fa fa-times cp-task-remove btn btn-danger',
|
||||||
|
title: Messages.todo_removeTaskTitle,
|
||||||
}).appendTo($taskDiv).on('click', function() {
|
}).appendTo($taskDiv).on('click', function() {
|
||||||
deleteTask(el);
|
deleteTask(el);
|
||||||
});
|
});
|
||||||
@ -106,6 +108,7 @@ define([
|
|||||||
};
|
};
|
||||||
var display = APP.display = function () {
|
var display = APP.display = function () {
|
||||||
$list.empty();
|
$list.empty();
|
||||||
|
$('.tippy-popper').remove();
|
||||||
APP.lm.proxy.order.forEach(function (el) {
|
APP.lm.proxy.order.forEach(function (el) {
|
||||||
addTaskUI(el);
|
addTaskUI(el);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user