Skip to content

Commit eb9ed6a

Browse files
committed
Revise #dirlist's default sortInitialOrder: "desc", except for "Name"
1 parent 3a99504 commit eb9ed6a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/org/opensolaris/opengrok/web/Scripts.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/*
2121
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
22+
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2223
*/
2324
package org.opensolaris.opengrok.web;
2425

@@ -125,7 +126,7 @@ public String toHtml() {
125126
SCRIPTS.put("jquery-tablesorter", new FileScript("js/jquery-tablesorter-2.26.6.min.js", 12));
126127
SCRIPTS.put("tablesorter-parsers", new FileScript("js/tablesorter-parsers-0.0.1.js", 13));
127128
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.5.min.js", 14));
128-
SCRIPTS.put("utils", new FileScript("js/utils-0.0.19.js", 15));
129+
SCRIPTS.put("utils", new FileScript("js/utils-0.0.20.js", 15));
129130
SCRIPTS.put("repos", new FileScript("js/repos-0.0.1.js", 20));
130131
SCRIPTS.put("diff", new FileScript("js/diff-0.0.2.js", 20));
131132
}

web/js/utils-0.0.19.js renamed to web/js/utils-0.0.20.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/*
2121
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
22-
*
2322
* Portions Copyright 2011 Jens Elkner.
23+
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2424
*/
2525

2626
/**
@@ -1439,9 +1439,11 @@ function init_tablesorter() {
14391439
$("#dirlist").tablesorter({
14401440
sortList: [[0, 0]],
14411441
cancelSelection: true,
1442+
sortInitialOrder: "desc",
14421443
headers: {
14431444
1: {
1444-
sorter: 'text'
1445+
sorter: 'text',
1446+
sortInitialOrder: "asc"
14451447
},
14461448
3: {
14471449
sorter: 'dates'

0 commit comments

Comments
 (0)