mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 08:27:51 +00:00
fix webtorrent file selection event
This commit is contained in:
parent
eee3f958c3
commit
045d443072
@ -390,12 +390,10 @@ function initWebTorrent() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// setup attach button
|
||||
$(".post-area-attach").show();
|
||||
var fileInput = $("#fileInputAttach");
|
||||
fileInput.on('change', function(event) {
|
||||
var file = fileInput[0].files[0];
|
||||
$(document).on("change", "#fileInputAttach", function(event) {
|
||||
var file = event.target.files[0];
|
||||
var seedingTorrent = undefined;
|
||||
for (var i = 0; i < WebTorrentClient.torrents.length; i++) {
|
||||
var torrent = WebTorrentClient.torrents[i];
|
||||
|
Loading…
Reference in New Issue
Block a user