Author: croberts
Date: 2012-04-25 16:45:29 +0000 (Wed, 25 Apr 2012)
New Revision: 5347
Modified:
trunk/wooly/python/wooly/table.py
trunk/wooly/python/wooly/table.strings
Log:
BZ 802698. Now respecting the max-qmf-table-sort config parameter by making all column
headers static for tables that have > max-qmf-table-sort rows.
Modified: trunk/wooly/python/wooly/table.py
===================================================================
--- trunk/wooly/python/wooly/table.py 2012-04-24 15:50:15 UTC (rev 5346)
+++ trunk/wooly/python/wooly/table.py 2012-04-25 16:45:29 UTC (rev 5347)
@@ -214,7 +214,7 @@
self.static_tmpl = WidgetTemplate(self, "static_html")
def do_render(self, session, *args):
- if self.parent.static_header:
+ if self.parent.static_header or self.table.count.get(session) >
self.app.max_qmf_table_sort:
writer = Writer()
self.static_tmpl.render(writer, session)
return writer.to_string()
Modified: trunk/wooly/python/wooly/table.strings
===================================================================
--- trunk/wooly/python/wooly/table.strings 2012-04-24 15:50:15 UTC (rev 5346)
+++ trunk/wooly/python/wooly/table.strings 2012-04-25 16:45:29 UTC (rev 5347)
@@ -92,6 +92,11 @@
};
}())
+[CheckboxColumnHeader.static_html]
+<th class="{class}"><input id="{id}"
type="checkbox"
+ onclick="wooly.clickTableCheckboxes(this, '{name}')"
+/></th>
+
[CheckboxColumnHeader.html]
<th class="{class}"><input id="{id}"
type="checkbox"
onclick="wooly.clickTableCheckboxes(this, '{name}')"
Show replies by date