issue 1903:SQLTABLE - 'even' and 'odd' css classes are opposite to real row type, thanks Paolo
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+2
-2
@@ -2538,7 +2538,7 @@ class SQLFORM(FORM):
|
|||||||
trcols.append(row_buttons)
|
trcols.append(row_buttons)
|
||||||
if buttons_placement in ['left', 'both']:
|
if buttons_placement in ['left', 'both']:
|
||||||
trcols.insert(0, row_buttons)
|
trcols.insert(0, row_buttons)
|
||||||
if numrec % 2 == 0:
|
if numrec % 2 == 1:
|
||||||
classtr = 'w2p_even even'
|
classtr = 'w2p_even even'
|
||||||
else:
|
else:
|
||||||
classtr = 'w2p_odd odd'
|
classtr = 'w2p_odd odd'
|
||||||
@@ -2981,7 +2981,7 @@ class SQLTABLE(TABLE):
|
|||||||
tbody = []
|
tbody = []
|
||||||
for (rc, record) in enumerate(sqlrows):
|
for (rc, record) in enumerate(sqlrows):
|
||||||
row = []
|
row = []
|
||||||
if rc % 2 == 0:
|
if rc % 2 == 1:
|
||||||
_class = 'w2p_even even'
|
_class = 'w2p_even even'
|
||||||
else:
|
else:
|
||||||
_class = 'w2p_odd odd'
|
_class = 'w2p_odd odd'
|
||||||
|
|||||||
Reference in New Issue
Block a user