Skip to content

Commit f3fbea4

Browse files
committed
added support for multiple and mime types inside standalonepopup
1 parent d11ab80 commit f3fbea4

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to `FileManager` will be documented in this file.
44

5+
## Version 1.1.4 - 2020-04-27
6+
7+
### Added
8+
- support for multiple selection inside standalonepopup;
9+
- support for mime type filtering inside standalonepopup;
10+
11+
512
## Version 1.1.3 - 2020-04-27
613

714
### Removed

resources/views/standalonepopup.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@
1919
soundPath: '{{ asset($dir.'/sounds') }}',
2020
dialog: {width: 900, modal: true, title: 'Select a file'},
2121
resizable: false,
22+
onlyMimes: @json(unserialize(urldecode(request('mimes')))),
2223
commandsOptions: {
2324
getfile: {
25+
multiple: {{ request('multiple') ? 'true' : 'false' }},
2426
oncomplete: 'destroy'
2527
}
2628
},
2729
getFileCallback: function (file) {
28-
window.parent.processSelectedFile(file.path, '{{ $input_id }}');
30+
@if (request()->has('multiple') && request()->input('multiple') == 1)
31+
window.parent.processSelectedMultipleFiles(file, '{{ $input_id }}');
32+
@else
33+
window.parent.processSelectedFile(file.path, '{{ $input_id }}');
34+
@endif
35+
2936
parent.jQuery.colorbox.close();
3037
}
3138
}).elfinder('instance');

0 commit comments

Comments
 (0)