[ 
https://issues.apache.org/jira/browse/ACCUMULO-4765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16297858#comment-16297858
 ] 

Christopher Tubbs commented on ACCUMULO-4765:
---------------------------------------------

A javascript-savy developer might be aware of some mechanism to determine the 
element from which the "sortTable" function was called, and be able to quickly 
inspect the DOM to figure out which column number is being sorted on. It could 
change the implementation from calls to {{sortTable(3)}} and {{sortTable(8)}} 
to just {{sortTable(this)}} or just {{sortTable()}} everywhere, which would 
both be more robust against copy/paste errors, or other kinds of restructuring 
of the html templates.

> Improve sortTable js function
> -----------------------------
>
>                 Key: ACCUMULO-4765
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4765
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: monitor
>    Affects Versions: 2.0.0
>            Reporter: Michael Miller
>            Priority: Minor
>              Labels: newbie
>             Fix For: 2.0.0
>
>
> The sortTable() javascript function is used quite a lot (and has many 
> implementations) in the Monitor but takes the column number as a parameter.  
> While this is a simple solution that works well, it could break if the order 
> of the columns change.  It would be nice to have a sortTable function that is 
> smarter and could automatically detect which column to sort.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to