svn commit: r832710 - in /activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp: decorators/main.jsp js/standardista-table-sorting.js

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r832710 - in /activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp: decorators/main.jsp js/standardista-table-sorting.js

by dejanb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: dejanb
Date: Wed Nov  4 11:32:00 2009
New Revision: 832710

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

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

Modified: activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/decorators/main.jsp
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/decorators/main.jsp?rev=832710&r1=832709&r2=832710&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/decorators/main.jsp (original)
+++ activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/decorators/main.jsp Wed Nov  4 11:32:00 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/branches/activemq-5.3/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js?rev=832710&r1=832709&r2=832710&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js (original)
+++ activemq/branches/activemq-5.3/activemq-web-console/src/main/webapp/js/standardista-table-sorting.js Wed Nov  4 11:32:00 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