You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2009/11/04 11:38:54 UTC

svn commit: r832701 - in /activemq/trunk/activemq-web-console/src/main/webapp: decorators/main.jsp js/standardista-table-sorting.js

Author: dejanb
Date: Wed Nov  4 10:38:40 2009
New Revision: 832701

URL: http://svn.apache.org/viewvc?rev=832701&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2410 - web console sorting

Modified:
    activemq/trunk/activemq-web-console/src/main/webapp/decorators/main.jsp
    activemq/trunk/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js

Modified: activemq/trunk/activemq-web-console/src/main/webapp/decorators/main.jsp
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web-console/src/main/webapp/decorators/main.jsp?rev=832701&r1=832700&r2=832701&view=diff
==============================================================================
--- activemq/trunk/activemq-web-console/src/main/webapp/decorators/main.jsp (original)
+++ activemq/trunk/activemq-web-console/src/main/webapp/decorators/main.jsp Wed Nov  4 10:38:40 2009
@@ -31,12 +31,13 @@
 	    <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>
     </c:if>
 
 	<decorator:head />
 </head>
 
-<body onload="prettyPrint()">
+<body>
 
 
 <div class="white_box">

Modified: activemq/trunk/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js?rev=832701&r1=832700&r2=832701&view=diff
==============================================================================
--- activemq/trunk/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js (original)
+++ activemq/trunk/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js Wed Nov  4 10:38:40 2009
@@ -423,6 +423,10 @@
 
 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 
 }
 
 addEvent(window, 'load', standardistaTableSortingInit)
\ No newline at end of file