Skip to content

Commit 7e29ef5

Browse files
committed
fix bug with preview
1 parent 8a2b9d8 commit 7e29ef5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

public/js/script.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ $('#multi_selection_toggle').click(function () {
122122
multi_selection_enabled = !multi_selection_enabled;
123123

124124
$('#multi_selection_toggle i')
125-
.toggleClass('fa-check-square', multi_selection_enabled)
126-
.toggleClass('fa-square', !multi_selection_enabled);
125+
.toggleClass('fa-ban', multi_selection_enabled)
126+
.toggleClass('fa-check-double', !multi_selection_enabled);
127127

128128
if (!multi_selection_enabled) {
129129
clearSelected();
@@ -199,7 +199,8 @@ $(document).on('dblclick', '#content a', function (e) {
199199
});
200200

201201
function getOneSelectedElement(orderOfItem) {
202-
return items[orderOfItem || selected[0]];
202+
var index = orderOfItem !== undefined ? orderOfItem : selected[0];
203+
return items[index];
203204
}
204205

205206
function getSelectedItems() {

src/views/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title>{{ trans('laravel-filemanager::lfm.title-page') }}</title>
1616
<link rel="shortcut icon" type="image/png" href="{{ asset('vendor/laravel-filemanager/img/72px color.png') }}">
1717
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
18-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css">
18+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
1919
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.css">
2020
<link rel="stylesheet" href="{{ asset('vendor/laravel-filemanager/css/cropper.min.css') }}">
2121
<link rel="stylesheet" href="{{ asset('vendor/laravel-filemanager/css/dropzone.min.css') }}">
@@ -42,7 +42,7 @@
4242
<ul class="navbar-nav ml-auto">
4343
<li class="nav-item">
4444
<a class="nav-link" id="multi_selection_toggle">
45-
<i class="fa fa-square fa-fw"></i>
45+
<i class="fa fa-check-double fa-fw"></i>
4646
<span>{{ trans('laravel-filemanager::lfm.menu-multiple') }}</span>
4747
</a>
4848
</li>

0 commit comments

Comments
 (0)