From ed2ecf6fd6f75af06527f5274cd22f416a7bd357 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 31 Jan 2018 16:31:41 +0800 Subject: [PATCH] * adjust for todo block. --- module/block/view/todoblock.html.php | 2 +- www/theme/default/style.css | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index cdbfa7e654..3a7d67ccfd 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -87,10 +87,10 @@ var isFinished = $liTag.hasClass('active'); var todoID = $liTag.data('id'); var methodName = isFinished ? 'activate' : 'finish'; - $liTag.removeClass('active'); $.get(createLink('todo', methodName, "todoID=" + todoID), function() { if(!isFinished) $liTag.addClass('active'); + if(isFinished) $liTag.removeClass('active'); }); }); }); diff --git a/www/theme/default/style.css b/www/theme/default/style.css index d3242c5486..359c6e0638 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -343,14 +343,12 @@ div.form-control[contenteditable='true'] {height: auto; text-align: left; outlin /* Panel */ .panel > .table > thead > tr > th,.panel > form > .table > thead > tr > th {background-color: transparent;} -.panel > .panel-heading,.nav-stacked.nav-primary>li.nav-heading,.list > header {background-color: #f1f1f1;} .panel-pure {box-shadow: none; border: 0; border-radius: 0;} .panel-pure .panel-heading {background: transparent;} .panel-actions {display: inline-block; margin-left: 8px;} .panel-actions .btn-mini {margin-top: -3px;} .panel-actions.pull-right{display: block; margin-top: -10px;margin-right: -10px;} .panel-actions.pull-right .btn{margin-top: 3px;} -.panel-heading > h1,.panel-heading > h2,.panel-heading > h3,.panel-heading > h4,.panel-heading > h5,.panel-heading > h6 {margin: 0} .panel-actions > .btn.btn-link:hover{background: none; box-shadow: none;} .panel-actions a {display: inline-block;} .panel .table {margin-bottom: 0; border: none!important}