From ccbba303a3a66a9706b50c98923af12e2f9ac02a Mon Sep 17 00:00:00 2001 From: Stream Date: Thu, 28 Dec 2017 17:23:53 +0800 Subject: [PATCH] click on file should call useFile() in grid view --- src/views/grid-view.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/grid-view.blade.php b/src/views/grid-view.blade.php index 6a9ef913..696a48d5 100644 --- a/src/views/grid-view.blade.php +++ b/src/views/grid-view.blade.php @@ -9,7 +9,7 @@ is_file ? $item->url : $item->path; ?>
is_file && $thumb_src) onclick="fileView('{{ $item_path }}', '{{ $item->updated }}')" + @if($item->is_file && $thumb_src) onclick="useFile('{{ $item_path }}', '{{ $item->updated }}')" @elseif($item->is_file) onclick="download('{{ $item_name }}')" @endif > @if($thumb_src) @@ -22,7 +22,7 @@