[rhmessaging-commits] rhmessaging commits: r2356 - mgmt/trunk/cumin/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Aug 26 08:34:43 EDT 2008


Author: eallen
Date: 2008-08-26 08:34:43 -0400 (Tue, 26 Aug 2008)
New Revision: 2356

Modified:
   mgmt/trunk/cumin/python/wooly/tables.py
Log:
Removed code to render inline sort arrow images. It was replaced with background images in css to avoid column resizing after a sort.

Modified: mgmt/trunk/cumin/python/wooly/tables.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/tables.py	2008-08-25 22:18:14 UTC (rev 2355)
+++ mgmt/trunk/cumin/python/wooly/tables.py	2008-08-26 12:34:43 UTC (rev 2356)
@@ -171,18 +171,6 @@
         else:
             return "unsorted_down"
         
-        
-    def render_sort_arrow(self, session, *args):
-        sel = self.parent.get_selected_column(session)
-
-        if sel is self.column:
-            if self.parent.reversed.get(session):
-                return "<img src=\"resource?name=sort-arrow-up.png\" alt=\"sort ascending\" />"
-            else:
-                return "<img src=\"resource?name=sort-arrow-down.png\"  alt=\"sort descending\" />"
-        else:
-            return "<img src=\"resource?name=x.png\" width=\"9\" height=\"10\" alt=\"\" />"
-
 class SqlTable(ItemTable):
     def __init__(self, app, name):
         super(SqlTable, self).__init__(app, name)




More information about the rhmessaging-commits mailing list