summaryrefslogtreecommitdiff
path: root/public/assets/js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 17:19:25 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 17:19:25 +0200
commitadb9b1d5d87fbb1a1fea347b4d1aae7e67a3955d (patch)
tree79b08d38571216672e77b1863a66a955591d2653 /public/assets/js
parent1e08d36c4c02596b4fc233544db1a4be2cff1ae2 (diff)
file sorting
Diffstat (limited to 'public/assets/js')
-rw-r--r--public/assets/js/lib/views/details/audioPlayer.js1
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/details/audioPlayer.js b/public/assets/js/lib/views/details/audioPlayer.js
index 700daa5..a2e38e5 100644
--- a/public/assets/js/lib/views/details/audioPlayer.js
+++ b/public/assets/js/lib/views/details/audioPlayer.js
@@ -77,6 +77,7 @@ const AudioPlayer = View.extend({
*/
onPlay: function (element) {
if (!this.active) {
+ this.$el.removeClass("unloaded");
this.active = true;
this.$el.addClass("active");
}
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index 4d64cf6..50b2f46 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -262,8 +262,8 @@ var HootStream = View.extend({
.map(([image]) => image);
// console.log(filteredImages);
-
// console.log(thread);
+
return [
"<div class='divider dark'></div>",
this.renderHoot({
@@ -344,7 +344,7 @@ var HootStream = View.extend({
return null;
}
const $table = $("<div class='fileList'>");
- for (const file of files) {
+ for (const file of files.sort((file) => file.filename.toLowerCase())) {
const $el = this.renderFile(this.fileTemplate, file);
$table.append($el);
}