Fixed file dropper triggering form submit
This commit is contained in:
parent
fd0e698413
commit
e983e72013
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ App.Controls.FileDropper = function($fileInput) {
|
|||
setNames: false,
|
||||
};
|
||||
|
||||
var $dropDiv = jQuery('<button class="file-handler"></button>');
|
||||
var $dropDiv = jQuery('<button type="button" class="file-handler"></button>');
|
||||
var allowMultiple = $fileInput.attr('multiple');
|
||||
$dropDiv.html((allowMultiple ? 'Drop files here!' : 'Drop file here!') + '<br/>Or just click on this box.');
|
||||
$dropDiv.insertBefore($fileInput);
|
||||
|
|
Loading…
Reference in a new issue