Update kanban.html.php
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user