[llvm-commits] [LNT] r161845 - /lnt/trunk/lnt/server/ui/static/v4_global_status.js
Michael Gottesman
mgottesman at apple.com
Mon Aug 13 21:21:21 PDT 2012
Author: mgottesman
Date: Mon Aug 13 23:21:21 2012
New Revision: 161845
URL: http://llvm.org/viewvc/llvm-project?rev=161845&view=rev
Log:
[LNT] v4_global_status: Added code to hack in a downwards pointing arrow
due to the philosophical position of sorttable.js implying that it should
not have to do that itself.
Modified:
lnt/trunk/lnt/server/ui/static/v4_global_status.js
Modified: lnt/trunk/lnt/server/ui/static/v4_global_status.js
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/static/v4_global_status.js?rev=161845&r1=161844&r2=161845&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/static/v4_global_status.js (original)
+++ lnt/trunk/lnt/server/ui/static/v4_global_status.js Mon Aug 13 23:21:21 2012
@@ -40,7 +40,16 @@
th.css('max-height', height);
});
$('#data-table-header').scrollToFixed();
-
+
+ // We serve up our results sorted correctly since sorttable.js does not
+ // sort on page load (which is most likely done for performance reasons, I
+ // guess?). The problem is that we do not have an initial arrow pointing up
+ // or down. So we hack the arrow in.
+ var initial_sort_header = document.getElementById('worst-time-header');
+ sortrevind = document.createElement('span');
+ sortrevind.id = "sorttable_sortrevind";
+ sortrevind.innerHTML = ' ▾';
+ initial_sort_header.appendChild(sortrevind);
});
/* Helper Functions */
More information about the llvm-commits
mailing list