Skip to content

Instantly share code, notes, and snippets.

@gilchris
Last active October 13, 2016 08:56
Show Gist options
  • Save gilchris/1bda0c85a8c5f420fd237d1c27c1d4ee to your computer and use it in GitHub Desktop.
Save gilchris/1bda0c85a8c5f420fd237d1c27c1d4ee to your computer and use it in GitHub Desktop.
Add to row background color on Redmine issues
(function() {
var colors = {
"1": "#aea", // 신규
"2": "#bfb", // 진행
"3": "#ccc", // 해결
"4": "#ff9", // 의견
"5": "#aaa", // 완료
"9": "#efa", // 보류
"10": "#ff9" // 의견
};
for (var status in colors) {
$("tr.status-" + status).css("background", colors[status]);
$("a.status-" + status + ":not(.parent)").parent().parent("tr").css("background", colors[status]);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment