Skip to content

Commit

Permalink
Prevent both file and directory selection occuring by making input se…
Browse files Browse the repository at this point in the history
…lector more specific (#551)
  • Loading branch information
mdusher authored and monkeyiq committed May 14, 2019
1 parent 683477b commit 141ed88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/upload_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ $(function() {
form: form,
files: {
input: form.find(':file'),
files_input: form.find('#files:file'),
list: form.find('.files'),
dragdrop: form.find('.files_dragdrop'),
uploadlogtop: form.find('.files_uploadlogtop'),
Expand Down Expand Up @@ -1026,7 +1027,7 @@ $(function() {

// Bind file list select button
filesender.ui.nodes.files.select.on('click', function() {
filesender.ui.nodes.files.input.click();
filesender.ui.nodes.files.files_input.click();
return false;
}).button();
filesender.ui.nodes.files.selectdir.button();
Expand Down

0 comments on commit 141ed88

Please sign in to comment.