Skip to content

Commit 6ed865c

Browse files
committed
Refresh folder list on folder delete; formatting
1 parent e4d09e6 commit 6ed865c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/controllers/DownloadController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public function getDownload()
3939
{
4040
$file_to_download = Input::get('file');
4141
$dir = Input::get('dir');
42-
return Response::download(base_path() . "/" . $this->file_location . $dir . "/" . $file_to_download);
42+
return Response::download(base_path()
43+
. "/"
44+
. $this->file_location
45+
. $dir
46+
. "/"
47+
. $file_to_download);
4348
}
49+
4450
}

src/views/index.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ function trash(x) {
243243
if (data != "OK") {
244244
notify(data);
245245
} else {
246+
loadFiles();
246247
loadImages();
247248
}
248249
});

0 commit comments

Comments
 (0)