mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
persist lead-column sort
This commit is contained in:
parent
9bda8c7eb6
commit
f50462de82
|
@ -72,7 +72,7 @@
|
||||||
<table id="files">
|
<table id="files">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th name="lead"><span>c</span></th>
|
||||||
<th name="href"><span>File Name</span></th>
|
<th name="href"><span>File Name</span></th>
|
||||||
<th name="sz" sort="int"><span>Size</span></th>
|
<th name="sz" sort="int"><span>Size</span></th>
|
||||||
{%- for k in taglist %}
|
{%- for k in taglist %}
|
||||||
|
|
|
@ -1091,6 +1091,9 @@ var treectl = (function () {
|
||||||
try {
|
try {
|
||||||
for (var a = sopts.length - 1; a >= 0; a--) {
|
for (var a = sopts.length - 1; a >= 0; a--) {
|
||||||
var name = sopts[a][0], rev = sopts[a][1], typ = sopts[a][2];
|
var name = sopts[a][0], rev = sopts[a][1], typ = sopts[a][2];
|
||||||
|
if (!name)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (name.indexOf('tags/') == -1) {
|
if (name.indexOf('tags/') == -1) {
|
||||||
nodes.sort(function (v1, v2) {
|
nodes.sort(function (v1, v2) {
|
||||||
if (!v1[name]) return -1 * rev;
|
if (!v1[name]) return -1 * rev;
|
||||||
|
@ -1305,7 +1308,7 @@ function find_file_col(txt) {
|
||||||
function mk_files_header(taglist) {
|
function mk_files_header(taglist) {
|
||||||
var html = [
|
var html = [
|
||||||
'<thead>',
|
'<thead>',
|
||||||
'<th></th>',
|
'<th name="lead"><span>c</span></th>',
|
||||||
'<th name="href"><span>File Name</span></th>',
|
'<th name="href"><span>File Name</span></th>',
|
||||||
'<th name="sz" sort="int"><span>Size</span></th>'
|
'<th name="sz" sort="int"><span>Size</span></th>'
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue