activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r906416 - in /activemq/trunk/activemq-web-console/src/main/webapp: decorators/main.jsp js/standardista-table-sorting.js
Date Thu, 04 Feb 2010 09:35:43 GMT
Author: dejanb
Date: Thu Feb  4 09:35:43 2010
New Revision: 906416

URL: http://svn.apache.org/viewvc?rev=906416&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2410 - fixing js errors

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=906416&r1=906415&r2=906416&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 Thu Feb  4 09:35:43
2010
@@ -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 />

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=906416&r1=906415&r2=906416&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 Thu
Feb  4 09:35:43 2010
@@ -423,10 +423,12 @@
 
 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)
\ No newline at end of file



Mime
View raw message