Skip to content

Commit b452869

Browse files
committed
bug fix
1 parent 51d329a commit b452869

File tree

4 files changed

+459
-5
lines changed

4 files changed

+459
-5
lines changed

resources/views/index.blade.php renamed to resources/views/list.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ function closeModal() {
205205
return $(this).val();
206206
}).toArray();
207207
208+
if (!files.length) {
209+
return;
210+
}
211+
208212
swal({
209213
title: "{{ trans('admin.delete_confirm') }}",
210214
type: "warning",
@@ -271,7 +275,10 @@ function(){
271275
<i class="fa fa-folder"></i>&nbsp;&nbsp;{{ trans('admin.new_folder') }}
272276
</a>
273277

274-
278+
<div class="btn-group">
279+
<a href="{{ route('media-index', ['path' => $url['path'], 'view' => 'table']) }}" class="btn btn-default {{ request('view') == 'table' ? 'active' : '' }}"><i class="fa fa-list"></i></a>
280+
<a href="{{ route('media-index', ['path' => $url['path'], 'view' => 'list']) }}" class="btn btn-default {{ request('view') == 'list' ? 'active' : '' }}"><i class="fa fa-th"></i></a>
281+
</div>
275282

276283
{{--<form action="{{ $url['index'] }}" method="get" pjax-container>--}}
277284
<div class="input-group input-group-sm pull-right goto-url" style="width: 250px;">

0 commit comments

Comments
 (0)