Update kanban.html.php

This commit is contained in:
周旭东
2022-02-10 02:38:49 +00:00
parent ec73ec4f83
commit b533838198
+1 -1
View File
@@ -186,7 +186,7 @@ function renderProjectItem(item, $item)
{
$progress = $('<div class="ring"><span></span></div>').appendTo($item);
}
var progress = Math.max(0, Math.min(100, Math.round(progress)));
var progress = Math.max(0, Math.min(100, Math.round(item.hours && !Array.isArray(item.hours) ? Math.round(item.hours.progress || 0) : 0)));
$progress.find('span').text(progress);
$progress.css('background-position-x', -Math.ceil(progress / 2) * 24);
$item.addClass('has-progress');