mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 13:41:52 +00:00
feat: update click_zan display_cnt
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
48824e6fc7
commit
d2e2760be3
@ -119,7 +119,7 @@ class ClickZans {
|
||||
|
||||
$display_cnt = $cnt > 0 ? '+' . $cnt : $cnt;
|
||||
|
||||
if ($cnt < 0) $display_cnt = '-';
|
||||
if ($cnt < 0) $display_cnt = '-?';
|
||||
|
||||
return '<span class="' . $cls . '"><span class="uoj-click-zan-cnt">[<strong>' . $display_cnt . '</strong>]</span></span>';
|
||||
}
|
||||
|
@ -123,9 +123,9 @@ class UOJBlog {
|
||||
}
|
||||
|
||||
public function getDisplayZanCnt() {
|
||||
$display_zan = $this->info['zan'] > 0 ? "+{$this->info['zan']}" : $this->info['zan'];
|
||||
$display_zan = $this->info['zan'];
|
||||
|
||||
if ($this->info['zan'] < 0) $display_zan = '-';
|
||||
if ($this->info['zan'] < 0) $display_zan = '-?';
|
||||
|
||||
return $display_zan;
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ $.fn.click_zan_block = function() {
|
||||
|
||||
var display_cnt = cnt > 0 ? '+' + cnt : cnt;
|
||||
|
||||
if (cnt < 0) display_cnt = '-';
|
||||
if (cnt < 0) display_cnt = '-?';
|
||||
|
||||
$(this)
|
||||
.append(up_node)
|
||||
|
Loading…
Reference in New Issue
Block a user