1 <div id=
"torrentsTableFixedHeaderDiv" class=
"dynamicTableFixedHeaderDiv">
2 <table class=
"dynamicTable unselectable" style=
"position:relative;">
4 <tr class=
"dynamicTableHeader"></tr>
9 <div id=
"torrentsTableDiv" class=
"dynamicTableDiv">
10 <table class=
"dynamicTable unselectable">
12 <tr class=
"dynamicTableHeader"></tr>
21 window
.qBittorrent
??= {};
22 window
.qBittorrent
.TransferList
??= (() => {
23 const exports
= () => {
26 contextMenu
: contextMenu
,
30 // create a context menu
31 const contextMenu
= new window
.qBittorrent
.ContextMenu
.TorrentsTableContextMenu({
32 targets
: "#torrentsTableDiv tr",
33 menu
: "torrentsTableMenu",
35 start
: (element
, ref
) => {
38 stop
: (element
, ref
) => {
41 forceStart
: (element
, ref
) => {
45 delete: (element
, ref
) => {
46 deleteSelectedTorrentsFN();
49 setLocation
: (element
, ref
) => {
53 rename
: (element
, ref
) => {
56 renameFiles
: (element
, ref
) => {
59 queueTop
: (element
, ref
) => {
60 setQueuePositionFN("topPrio");
62 queueUp
: (element
, ref
) => {
63 setQueuePositionFN("increasePrio");
65 queueDown
: (element
, ref
) => {
66 setQueuePositionFN("decreasePrio");
68 queueBottom
: (element
, ref
) => {
69 setQueuePositionFN("bottomPrio");
72 downloadLimit
: (element
, ref
) => {
75 uploadLimit
: (element
, ref
) => {
78 shareRatio
: (element
, ref
) => {
82 sequentialDownload
: (element
, ref
) => {
83 toggleSequentialDownloadFN();
85 firstLastPiecePrio
: (element
, ref
) => {
86 toggleFirstLastPiecePrioFN();
89 autoTorrentManagement
: (element
, ref
) => {
90 autoTorrentManagementFN();
92 forceRecheck
: (element
, ref
) => {
95 forceReannounce
: (element
, ref
) => {
99 superSeeding
: (element
, ref
) => {
100 setSuperSeedingFN(!ref
.getItemChecked("superSeeding"));
103 exportTorrent
: (element
, ref
) => {
113 const setup
= () => {
114 torrentsTable
.setup("torrentsTableDiv", "torrentsTableFixedHeaderDiv", contextMenu
);
119 Object
.freeze(window
.qBittorrent
.TransferList
);
121 window
.qBittorrent
.TransferList
.setup();