Last active
October 13, 2016 08:56
-
-
Save gilchris/1bda0c85a8c5f420fd237d1c27c1d4ee to your computer and use it in GitHub Desktop.
Add to row background color on Redmine issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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