From 573fa80df60cef145bf17948999394dede25a88b Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 13 Apr 2022 14:00:25 +0800 Subject: [PATCH] * Fix bug#13127. --- module/block/view/todoblock.html.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index cb4e0d6246..2c55aa2355 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -161,12 +161,10 @@ 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]')); }); }); });