From 705e17384fa6512817747705d743c0dd263ee78d Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 11 May 2015 14:54:10 +0800 Subject: [PATCH] [dir view] bugfix for 'sort' --- static/scripts/app/views/dir.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/scripts/app/views/dir.js b/static/scripts/app/views/dir.js index de49590f4c..b7c57abc5f 100644 --- a/static/scripts/app/views/dir.js +++ b/static/scripts/app/views/dir.js @@ -465,6 +465,7 @@ define([ this.$dirent_list.empty(); dirents.each(this.addOne, this); el.toggleClass('icon-caret-up icon-caret-down'); + dirents.comparator = null; }, sortByTime: function () { @@ -484,6 +485,7 @@ define([ this.$dirent_list.empty(); dirents.each(this.addOne, this); el.toggleClass('icon-caret-up icon-caret-down'); + dirents.comparator = null; }, select: function () {