issue 1903:SQLTABLE - 'even' and 'odd' css classes are opposite to real row type, thanks Paolo

This commit is contained in:
mdipierro
2014-03-21 01:02:38 -05:00
parent f8831b0bf3
commit 8f99ce734d
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.9.5-stable+timestamp.2014.03.20.17.51.58
Version 2.9.5-stable+timestamp.2014.03.21.01.01.28

View File

@@ -2538,7 +2538,7 @@ class SQLFORM(FORM):
trcols.append(row_buttons)
if buttons_placement in ['left', 'both']:
trcols.insert(0, row_buttons)
if numrec % 2 == 0:
if numrec % 2 == 1:
classtr = 'w2p_even even'
else:
classtr = 'w2p_odd odd'
@@ -2981,7 +2981,7 @@ class SQLTABLE(TABLE):
tbody = []
for (rc, record) in enumerate(sqlrows):
row = []
if rc % 2 == 0:
if rc % 2 == 1:
_class = 'w2p_even even'
else:
_class = 'w2p_odd odd'