From c747c0a7116da74a7da087bec7d5bdae07c9f2a4 Mon Sep 17 00:00:00 2001 From: ElegantMonkey Date: Wed, 24 May 2017 12:27:51 -0300 Subject: [PATCH] Fix filelist folder show/hide logic It only toggled the "hidden" attributes of the childs, however if you closed a subfolder, then closed the parent folder, all childs of the parent would be toggled, leaving the subfolder that we closed open. Now the state is stored on the data-filelist-open attribute, and the hidden state is set based on it. --- templates/view.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/view.html b/templates/view.html index aa0aa629..c6358b1a 100644 --- a/templates/view.html +++ b/templates/view.html @@ -46,7 +46,7 @@

{{call $.T "files"}}

{{ if gt (len .FileList) 0 }} {{/* how do i concat lol */}} - {{ $folderFormat := `{{.FolderName}}{{ fileSize .TotalSize .Data.T }}` }} + {{ $folderFormat := `{{.FolderName}}{{ fileSize .TotalSize .Data.T }}` }} {{ $fileFormat := `{{.Filename}}{{ fileSize .Filesize .Data.T }}` }}