Fix handling drag and drop event on FireFox

See: https://github.com/kartik-v/bootstrap-fileinput/issues/1283
This commit is contained in:
printempw 2018-08-08 22:13:26 +08:00
parent 9e579a7cf4
commit d2642eea92

View File

@ -11,6 +11,7 @@ function initUploadListeners() {
$('body')
.on('change', '#file', () => handleFiles())
.on('filebatchselected', '#file', () => handleFiles())
.on('ifToggled', '#type-cape', () => handleFiles())
.on('change', '#skin-type', function () {
if ($('#file').prop('files').length === 0) {