Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function checkResponse() {
var response = JSON.parse(xhr.responseText);
var topStatus = -1;
if (response.jobs) {
//API call executed against a view of potentially multiple jobs
jobs = response.jobs;
if (localStorage.sorting == 'status') {
jobs.sort(sortByStatus);
Expand All @@ -69,6 +70,14 @@ function checkResponse() {
}
for (var i in response.jobs)
topStatus = Math.max(topStatus, STATUSES[response.jobs[i].color]);
} else if (response.color) {
//API call executed against a single job
jobs = [{
name : response.name,
url : response.url,
color : response.color
}];
topStatus = STATUSES[response.color];
}
handleSuccess(topStatus);
return;
Expand Down
4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ input[type=button] {
border-radius: 2px;
padding: 5px;
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc));
}


input[type=button]:active {
border: 1px inset #999;
}

div.optionform {
Expand Down