mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed file dropper triggering form submit
This commit is contained in:
@ -10,7 +10,7 @@ App.Controls.FileDropper = function($fileInput) {
|
|||||||
setNames: false,
|
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');
|
var allowMultiple = $fileInput.attr('multiple');
|
||||||
$dropDiv.html((allowMultiple ? 'Drop files here!' : 'Drop file here!') + '<br/>Or just click on this box.');
|
$dropDiv.html((allowMultiple ? 'Drop files here!' : 'Drop file here!') + '<br/>Or just click on this box.');
|
||||||
$dropDiv.insertBefore($fileInput);
|
$dropDiv.insertBefore($fileInput);
|
||||||
|
Reference in New Issue
Block a user