Mercurial > mozilla > hg > talosnames
changeset 34:b51b0d750086
color the paint and color cells
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 23 Jul 2012 13:55:17 -0700 |
parents | 15f17eeb1813 |
children | 88d280049e2f |
files | talosnames/templates/index.html |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/talosnames/templates/index.html Mon Jul 23 13:47:51 2012 -0700 +++ b/talosnames/templates/index.html Mon Jul 23 13:55:17 2012 -0700 @@ -59,8 +59,20 @@ <script> $(document).ready(function() { +function mark_boolean(selector) { +$(selector).each(function() { +var text = $(this).text(); +if (text == 'True') { +$(this).addClass('true'); +} else if (text == 'False') { +$(this).addClass('false'); +} +}); +} + // color paint/chrome boxes appropriately - +mark_boolean('td.paint'); +mark_boolean('td.chrome'); // add TBPL initials to TBPL names from Config.js $('td.tbpl').each(function() {