From 89904871f07f079e5b6a317e08ccb7663f80bd32 Mon Sep 17 00:00:00 2001 From: zhaojun1998 Date: Tue, 27 Aug 2019 22:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=92=E5=BA=8FBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/script/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/script/main.js b/src/main/resources/static/script/main.js index d476f71..1f1a3af 100644 --- a/src/main/resources/static/script/main.js +++ b/src/main/resources/static/script/main.js @@ -176,11 +176,11 @@ define(['jquery', 'Mustache', 'layer', 'marked', 'highlight', 'DPlayer', 'Shikwa sortSwitch: function (who) { if ($(who).hasClass("descending")) { this.listObjects(zfile.getPath(), zfile.getSortBy(), false); - zfile.clearList(); + zfile.sortClear(); $(who).addClass("ascending"); } else { this.listObjects(zfile.getPath(), zfile.getSortBy(), true); //默认新一次排序为倒序 - zfile.clearList(); + zfile.sortClear(); $(who).addClass("descending"); } }, @@ -395,7 +395,7 @@ define(['jquery', 'Mustache', 'layer', 'marked', 'highlight', 'DPlayer', 'Shikwa for (var i = 0; i < path.length - 1; i++) { var current = path.charAt(i); var next = path.charAt(i + 1); - if ( !(current === '/' && next === '/') ) { + if (!(current === '/' && next === '/')) { result += current; } }