You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Rob (JIRA)" <ji...@apache.org> on 2010/02/03 21:01:32 UTC

[jira] Commented: (AMQ-2410) Web console queues index misses sort link on table header

    [ https://issues.apache.org/activemq/browse/AMQ-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57356#action_57356 ] 

Rob commented on AMQ-2410:
--------------------------

I had added this fix about a month ago and didn't pay too much attention to it. We changed to fuse 5.3 and I noticed a javascript error on the page. Perhaps this does not affect amq 5.3 but I bet it does.

The JS error is:

"opt_whenDone is not a function"

This occurs on the topics and queues pages. The fix is mentioned on the prettify.js page:

"
I get an error message "a is not a function" or "opt_whenDone is not a function"

If you are calling prettyPrint via an event handler, wrap it in a function. Instead of doing

addEventListener('load', prettyPrint, false);
wrap it in a closure like
addEventListener('load', function (event) { prettyPrint() }, false);
so that the browser does not pass an event object to prettyPrint which will confuse it. 
"

Also.. when you click the "home" link on the admin page.. you get a different error:

"document.getElementsByTagName("TH")[0] is undefined"

I just made a quick fix... so there is probably something better to do... I changed the following:

var e = {};
var obj = document.getElementsByTagName("TH")[0].firstChild;
e.target = obj;
standardistaTableSorting.headingClicked(e);  // will sort Ascending 

to:

if(window.location.hostname.indexOf("index.jsp") != -1)
{
    var e = {};
    var obj = document.getElementsByTagName("TH")[0].firstChild; 
    e.target = obj;
    standardistaTableSorting.headingClicked(e);  // will sort Ascending 
}

> Web console queues index misses sort link on table header
> ---------------------------------------------------------
>
>                 Key: AMQ-2410
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2410
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.3.0
>         Environment: ActiveMQ 5.3 SNAPSHOT 2009-09-08, MacOSX 10.6.1, Java 1.6.0_15, Ubuntu Server 8.04 LTS
>            Reporter: Uwe Kubosch
>            Assignee: Dejan Bosanac
>            Priority: Minor
>             Fix For: 5.3.1, 5.4.0
>
>
> In the ActiveMQ 5.2 web console, we could click on the column headers of the queue index table to sort the table on the indicated column values.
> This is missing in the 5.3 SNAPSHOT.  The column headers are just inactive text, not links like they wer in 5.2.
> The sorting feature is VERY helpful when we have many queues, as we have in our project.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.