From f1aad53d14290f2008da6c43d4cd3a6299d0f342 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 12 Apr 2022 13:20:26 +0800 Subject: [PATCH] * Fix bug#13127. --- module/block/view/todoblock.html.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index 2c55aa2355..cb4e0d6246 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -161,10 +161,12 @@ if(!$selfCall) die(include('./todolist.html.php')); var isFinished = $liTag.hasClass('active'); var todoID = $liTag.data('id'); var methodName = isFinished ? 'activate' : 'finish'; + var $todoes = $(this).closest('.block-todoes'); $.get(createLink('todo', methodName, "todoID=" + todoID), function() { if(!isFinished) $liTag.addClass('active'); if(isFinished) $liTag.removeClass('active'); + refreshBlock($todoes.parents('div.panel[id^=block]')); }); }); });