diff options
author | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 18:18:12 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2016-03-01 18:18:12 +0100 |
commit | 572e87c903c749a78ef22b7e521b964b97cc5b28 (patch) | |
tree | 1b620b79ad121d002a03bcfcd4970af4ad44f231 /app | |
parent | a26d1f9bb76493767bceaecffcb6d39b4f5aac7a (diff) | |
download | Surfer-572e87c903c749a78ef22b7e521b964b97cc5b28.tar.gz Surfer-572e87c903c749a78ef22b7e521b964b97cc5b28.tar.zst Surfer-572e87c903c749a78ef22b7e521b964b97cc5b28.zip |
Show folders first
Diffstat (limited to 'app')
-rw-r--r-- | app/js/app.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/js/app.js b/app/js/app.js index c942e60..4f84ea2 100644 --- a/app/js/app.js +++ b/app/js/app.js | |||
@@ -81,6 +81,7 @@ function loadDirectory(filePath) { | |||
81 | if (error) return console.error(error); | 81 | if (error) return console.error(error); |
82 | if (result.statusCode === 401) return logout(); | 82 | if (result.statusCode === 401) return logout(); |
83 | 83 | ||
84 | result.body.entries.sort(function (a, b) { return a.isDirectory && b.isFile ? -1 : 1 }); | ||
84 | app.entries = result.body.entries.map(function (entry) { | 85 | app.entries = result.body.entries.map(function (entry) { |
85 | entry.previewUrl = getPreviewUrl(entry, filePath); | 86 | entry.previewUrl = getPreviewUrl(entry, filePath); |
86 | return entry; | 87 | return entry; |