git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906416 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-02-04 09:35:43 +00:00
parent 1e8acfadb2
commit 3253a421c1
2 changed files with 7 additions and 5 deletions

View File

@ -31,7 +31,7 @@
<script type='text/javascript' src='<c:url value="/js/css.js"/>'></script>
<script type='text/javascript' src='<c:url value="/js/standardista-table-sorting.js"/>'></script>
<script type='text/javascript' src='<c:url value="/js/prettify.js"/>'></script>
<script>addEvent(window, 'load', prettyPrint)</script>
<script>addEvent(window, 'load', function (event) { prettyPrint() })</script>
</c:if>
<decorator:head />

View File

@ -423,10 +423,12 @@ var standardistaTableSorting = {
function standardistaTableSortingInit() {
standardistaTableSorting.init();
var e = {};
var obj = document.getElementsByTagName("TH")[0].firstChild; // 0 points to the first column, use 3 if you want to sort on the 4th column
e.target = obj;
standardistaTableSorting.headingClicked(e); // will sort Ascending
if (document.getElementsByTagName("TH")[0] != null) {
var e = {};
var obj = document.getElementsByTagName("TH")[0].firstChild; // 0 points to the first column, use 3 if you want to sort on the 4th column
e.target = obj;
standardistaTableSorting.headingClicked(e); // will sort Ascending
}
}
addEvent(window, 'load', standardistaTableSortingInit)