From 9c07793d0db23ceac52b0b1221d3d4458fbf29b6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 13:42:12 +0200 Subject: [PATCH] remove tips on checkbox state change --- www/todo/main.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/todo/main.js b/www/todo/main.js index 5b5f9086e..468fe57f4 100644 --- a/www/todo/main.js +++ b/www/todo/main.js @@ -22,6 +22,10 @@ define([ var ifrw = $('#pad-iframe')[0].contentWindow; var $list = $iframe.find('#tasksList'); + var removeTips = function () { + $('.tippy-popper').remove(); + }; + var onReady = function () { var todo = Todo.init(APP.lm.proxy, Cryptpad); @@ -34,7 +38,7 @@ define([ }); $els.fadeOut(null, function () { $els.remove(); - $('.tippy-popper').remove(); + removeTips(); }); //APP.display(); }; @@ -57,6 +61,7 @@ define([ Messages.todo_markAsIncompleteTitle: Messages.todo_markAsCompleteTitle; + removeTips(); return $('', { 'class': 'cp-task-checkbox fa ' + checked, title: title, @@ -108,7 +113,7 @@ define([ }; var display = APP.display = function () { $list.empty(); - $('.tippy-popper').remove(); + removeTips(); APP.lm.proxy.order.forEach(function (el) { addTaskUI(el); });