file selector: correct typo, click event target
This commit is contained in:
parent
e42ffb2768
commit
6f94a06586
@ -141,11 +141,12 @@ $(document).on('click', '.dropzone .remove-btn', function (e) {
|
|||||||
removeFile(file);
|
removeFile(file);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('keypress click', '.dropzone, .dropzone .file-hint', function (e) {
|
$(document).on('keypress click', '.dropzone', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
// accept mosue click or Enter
|
// accept mouse click or Enter
|
||||||
if (e.which != 1 && e.which != 13)
|
if ((e.which != 1 || e.target.className != 'file-hint') &&
|
||||||
|
e.which != 13)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var $fileSelector = $('<input type="file" multiple>');
|
var $fileSelector = $('<input type="file" multiple>');
|
||||||
|
Loading…
Reference in New Issue
Block a user