diff --git a/web/app/controllers/click_zan.php b/web/app/controllers/click_zan.php index 05817fe..a43437a 100644 --- a/web/app/controllers/click_zan.php +++ b/web/app/controllers/click_zan.php @@ -24,6 +24,7 @@ $id = $_POST['id']; $delta = $_POST['delta']; $type = $_POST['type']; + $show_text = isset($_POST['show-text']) && $_POST['show-text'] != 'false'; switch ($type) { case 'B': @@ -65,4 +66,4 @@ $cnt = $row['zan']; } ?> -= getClickZanBlock($type, $id, $cnt, $cur) ?> \ No newline at end of file += getClickZanBlock($type, $id, $cnt, $cur, $show_text) ?> diff --git a/web/js/uoj.js b/web/js/uoj.js index 1413ad9..695c71f 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -259,11 +259,13 @@ $.fn.uoj_blog_tag = function() { // click zan function click_zan(zan_id, zan_type, zan_delta, node) { var loading_node = $('