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
: ".torrentsTableContextMenuTarget",
33 menu
: "torrentsTableMenu",
35 start: function(element
, ref
) {
38 stop: function(element
, ref
) {
41 forceStart: function(element
, ref
) {
45 delete: function(element
, ref
) {
49 setLocation: function(element
, ref
) {
53 rename: function(element
, ref
) {
56 renameFiles: function(element
, ref
) {
59 queueTop: function(element
, ref
) {
60 setQueuePositionFN("topPrio");
62 queueUp: function(element
, ref
) {
63 setQueuePositionFN("increasePrio");
65 queueDown: function(element
, ref
) {
66 setQueuePositionFN("decreasePrio");
68 queueBottom: function(element
, ref
) {
69 setQueuePositionFN("bottomPrio");
72 downloadLimit: function(element
, ref
) {
75 uploadLimit: function(element
, ref
) {
78 shareRatio: function(element
, ref
) {
82 sequentialDownload: function(element
, ref
) {
83 toggleSequentialDownloadFN();
85 firstLastPiecePrio: function(element
, ref
) {
86 toggleFirstLastPiecePrioFN();
89 autoTorrentManagement: function(element
, ref
) {
90 autoTorrentManagementFN();
92 forceRecheck: function(element
, ref
) {
95 forceReannounce: function(element
, ref
) {
99 superSeeding: function(element
, ref
) {
100 setSuperSeedingFN(!ref
.getItemChecked("superSeeding"));
103 exportTorrent: function(element
, ref
) {
113 const setup
= () => {
114 torrentsTable
.setup("torrentsTableDiv", "torrentsTableFixedHeaderDiv", contextMenu
);
119 Object
.freeze(window
.qBittorrent
.TransferList
);
121 window
.qBittorrent
.TransferList
.setup();