5ef132d4939628369285b1dc8baa0e2fc62439da
tdreszer
  Wed Jul 7 13:18:53 2010 -0700
Sorting table rows takes time and needs wait masking
diff --git src/hg/js/hui.js src/hg/js/hui.js
index b35bb00..d3ba791 100644
--- src/hg/js/hui.js
+++ src/hg/js/hui.js
@@ -816,7 +816,7 @@
     tableSortByColumns(tbody,columns);
 }
 
-function tableSortAtButtonPress(anchor,tagId)
+function _tableSortAtButtonPressEncapsulated(anchor,tagId)
 {// Updates the sortColumns struct and sorts the table when a column header has been pressed
  // If the current primary sort column is pressed, its direction is toggled then the table is sorted
  // If a secondary sort column is pressed, it is moved to the primary spot and sorted in fwd direction
@@ -872,6 +872,12 @@
     return;
 
 }
+
+function tableSortAtButtonPress(anchor,tagId)
+{
+    waitOnFunction( _tableSortAtButtonPressEncapsulated, anchor, tagId);
+}
+
 function tableSortAtStartup()
 {
     //alert("tableSortAtStartup() called");