Skip to content

Commit ccbba30

Browse files
committed
click on file should call useFile() in grid view
1 parent 40ff560 commit ccbba30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/grid-view.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<?php $item_path = $item->is_file ? $item->url : $item->path; ?>
1010

1111
<div class="square clickable {{ $item->is_file ? '' : 'folder-item' }}" data-id="{{ $item_path }}"
12-
@if($item->is_file && $thumb_src) onclick="fileView('{{ $item_path }}', '{{ $item->updated }}')"
12+
@if($item->is_file && $thumb_src) onclick="useFile('{{ $item_path }}', '{{ $item->updated }}')"
1313
@elseif($item->is_file) onclick="download('{{ $item_name }}')" @endif >
1414
@if($thumb_src)
1515
<img src="{{ $thumb_src }}">
@@ -22,7 +22,7 @@
2222
<div class="btn-group">
2323
<button type="button" data-id="{{ $item_path }}"
2424
class="item_name btn btn-default btn-xs {{ $item->is_file ? '' : 'folder-item'}}"
25-
@if($item->is_file && $thumb_src) onclick="fileView('{{ $item_path }}', '{{ $item->updated }}')"
25+
@if($item->is_file && $thumb_src) onclick="useFile('{{ $item_path }}', '{{ $item->updated }}')"
2626
@elseif($item->is_file) onclick="download('{{ $item_name }}')" @endif >
2727
{{ $item_name }}
2828
</button>

0 commit comments

Comments
 (0)