Skip to content

Commit

Permalink
set default sort order /requires page
Browse files Browse the repository at this point in the history
  • Loading branch information
monken committed Sep 3, 2011
1 parent 3c1bbd7 commit c3a0cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions root/requires.html
Expand Up @@ -19,3 +19,4 @@
<big><strong>No depedants for <% module %> could be found</strong></big>
<% END %>
</div>
<script>defaultSort = [[2,1]];</script>
4 changes: 2 additions & 2 deletions root/static/js/cpan.js
Expand Up @@ -90,8 +90,8 @@ $(document).ready(function() {

$('#signin-button').mouseenter(function(){$('#signin').show()});
$('#signin').mouseleave(function(){$('#signin').hide()});

$('.tablesorter').tablesorter({sortList: [[0,0]], widgets: ['zebra'],textExtraction: function(node){
if(typeof defaultSort == "undefined") defaultSort = [[0,0]];
$('.tablesorter').tablesorter({sortList: defaultSort, widgets: ['zebra'],textExtraction: function(node){
if(node.getAttribute('class') == 'date') {
var date = new Date(node.firstChild.getAttribute('sort'));
return date.getTime();
Expand Down

0 comments on commit c3a0cbc

Please sign in to comment.