Skip to content

Commit

Permalink
Tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yoricksijsling committed Sep 13, 2011
1 parent f4798d6 commit c2e5afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/kanban.js
Expand Up @@ -81,9 +81,9 @@ function addTicket(ticket) {
var userName = (users[ticket['assignee-id']] !== undefined) ? users[ticket['assignee-id']]['first-name'] + ' ' + users[ticket['assignee-id']]['last-name'] : '';
var ticketSummary = (ticket.summary.length > 50) ? ticket.summary.substr(0, 50) + '...' : ticket.summary;
var timeAgo = calcTimeAgo(parseDate(ticket['updated-at']));
var ticketBranches = ciBranches[ticket['ticket-id']];
var ticketBranches = ciBranches[ticket['ticket-id']] || {};
var ciStatus = 'unknown';
$.each(ticketBranches || {}, function(projectName, branch) {
$.each(ticketBranches, function(projectName, branch) {
if (branch.cake_testsuite_failures == 0 && ciStatus == 'unknown') {
ciStatus = 'ok';
} else if (branch.cake_testsuite_failures > 0) {
Expand Down

0 comments on commit c2e5afb

Please sign in to comment.