From 3a38dcbc056c535cce5806bdbc27f12aeca7b4a1 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 29 Mar 2021 20:53:20 +0200 Subject: [PATCH] v0.10.4 --- copyparty/__version__.py | 2 +- copyparty/web/browser.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 58e52b44..88de78bd 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (0, 10, 3) +VERSION = (0, 10, 4) CODENAME = "zip it" BUILD_DT = (2021, 3, 29) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 08668a36..bd71c408 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1086,7 +1086,7 @@ var treectl = (function () { ebi('srv_info').innerHTML = '' + res.srvinf + ''; var nodes = res.dirs.concat(res.files), - sopts = jread('fsort', []); + sopts = jread('fsort', [["lead", -1, ""], ["href", 1, ""]]); try { for (var a = sopts.length - 1; a >= 0; a--) { @@ -1507,8 +1507,11 @@ var mukey = (function () { } function render() { - var ci = find_file_col('Key'), - i = ci[0], + var ci = find_file_col('Key'); + if (!ci) + return; + + var i = ci[0], min = ci[1], rows = ebi('files').tBodies[0].rows;