Skip to content

Commit

Permalink
click on file should call useFile() in grid view
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Dec 28, 2017
1 parent 40ff560 commit ccbba30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/grid-view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<?php $item_path = $item->is_file ? $item->url : $item->path; ?>

<div class="square clickable {{ $item->is_file ? '' : 'folder-item' }}" data-id="{{ $item_path }}"
@if($item->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)
<img src="{{ $thumb_src }}">
Expand All @@ -22,7 +22,7 @@
<div class="btn-group">
<button type="button" data-id="{{ $item_path }}"
class="item_name btn btn-default btn-xs {{ $item->is_file ? '' : 'folder-item'}}"
@if($item->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 >
{{ $item_name }}
</button>
Expand Down

0 comments on commit ccbba30

Please sign in to comment.