From 07cda6c39cb7845219d5ba13ae61168890ff9225 Mon Sep 17 00:00:00 2001 From: pep Date: Wed, 29 Jul 2020 01:53:35 +0000 Subject: ok --- public/assets/js/lib/views/details/files.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'public/assets/js/lib/views/details/files.js') diff --git a/public/assets/js/lib/views/details/files.js b/public/assets/js/lib/views/details/files.js index 915f90b..beed3e6 100644 --- a/public/assets/js/lib/views/details/files.js +++ b/public/assets/js/lib/views/details/files.js @@ -16,12 +16,17 @@ var FilesView = FormView.extend({ }, load: function(files, thread){ - if (! files.length) { + this.files = this.options.parent.data.files + window.ok = this.options.parent + if (! this.files.length) { + console.log("hiding") this.$el.hide() + }else{ + console.log("showing") + this.$el.show() } var total = 0, has_music = false - this.files = this.files.concat(files) this.thread = thread || this.thread this.files.forEach(function(file){ if (is_image(file.filename)) { @@ -44,7 +49,6 @@ var FilesView = FormView.extend({ } }, - files: [], sortedFiles: [], currentSort: 'name', reversed: false, -- cgit v1.2.3-70-g09d2