Mercurial > hg > fapweb
changeset 689:a934b2de8ef1
Add row classes to entry table elements.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Nov 2014 20:47:09 +0200 |
parents | 2b3c17c7b7f8 |
children | bad79296eb34 |
files | admajax.php |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Sun Nov 09 20:46:19 2014 +0200 +++ b/admajax.php Sun Nov 09 20:47:09 2014 +0200 @@ -149,7 +149,8 @@ if ($tr) { echo - " <tr id=\"entry".$eid."\" onClick=\"activateEntry(".$eid.")\">\n"; + " <tr class=\"".($row % 2 == 1 ? "rodd" : "reven"). + "\" id=\"entry".$eid."\" onClick=\"activateEntry(".$eid.")\">\n"; } echo