Author: ilya_shaikovsky
Date: 2010-06-10 12:38:03 -0400 (Thu, 10 Jun 2010)
New Revision: 17597
Modified:
root/examples/richfaces-showcase/branches/richfaces-showcase-4.0.0.Alpha2/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
Log:
https://jira.jboss.org/browse/RF-8749
Modified:
root/examples/richfaces-showcase/branches/richfaces-showcase-4.0.0.Alpha2/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
===================================================================
---
root/examples/richfaces-showcase/branches/richfaces-showcase-4.0.0.Alpha2/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-06-10
15:42:02 UTC (rev 17596)
+++
root/examples/richfaces-showcase/branches/richfaces-showcase-4.0.0.Alpha2/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-06-10
16:38:03 UTC (rev 17597)
@@ -9,11 +9,11 @@
<ui:composition>
<style>
-.stable tr:nth-child(even) {
+.even-row {
background-color: #FCFFFE;
}
-.stable tr:nth-child(odd) {
+.odd-row {
background-color: #ECF3FE;
}
@@ -63,6 +63,10 @@
<script>
$('.stable tr').mouseover(function(){$(this).addClass('active-row')});
$('.stable
tr').mouseout(function(){$(this).removeClass('active-row')});
+
+ $('.stable tr:odd').addClass('odd-row');
+ $('.stable tr:even').addClass('even-row');
+
</script>
</ui:composition>
</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableStyling.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-06-10
15:42:02 UTC (rev 17596)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableStyling.xhtml 2010-06-10
16:38:03 UTC (rev 17597)
@@ -9,11 +9,11 @@
<ui:composition>
<style>
-.stable tr:nth-child(even) {
+.even-row {
background-color: #FCFFFE;
}
-.stable tr:nth-child(odd) {
+.odd-row {
background-color: #ECF3FE;
}
@@ -63,6 +63,10 @@
<script>
$('.stable tr').mouseover(function(){$(this).addClass('active-row')});
$('.stable
tr').mouseout(function(){$(this).removeClass('active-row')});
+
+ $('.stable tr:odd').addClass('odd-row');
+ $('.stable tr:even').addClass('even-row');
+
</script>
</ui:composition>
</html>
\ No newline at end of file