2016-07-16 22:21:14 +03:00
|
|
|
<div id="torrentsTableFixedHeaderDiv" class="dynamicTableFixedHeaderDiv">
|
|
|
|
<table class="dynamicTable unselectable" style="position:relative;">
|
|
|
|
<thead>
|
|
|
|
<tr class="dynamicTableHeader"></tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="torrentsTableDiv" class="dynamicTableDiv">
|
|
|
|
<table class="dynamicTable unselectable">
|
|
|
|
<thead>
|
|
|
|
<tr class="dynamicTableHeader"></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2009-11-24 19:41:31 +00:00
|
|
|
|
2018-03-21 14:34:37 +08:00
|
|
|
<script>
|
2018-11-30 18:30:26 +08:00
|
|
|
'use strict';
|
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
if (window.qBittorrent === undefined) {
|
|
|
|
window.qBittorrent = {};
|
|
|
|
}
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
window.qBittorrent.TransferList = (function() {
|
|
|
|
const exports = function() {
|
|
|
|
return {
|
|
|
|
contextMenu: contextMenu,
|
|
|
|
};
|
|
|
|
};
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
//create a context menu
|
|
|
|
const contextMenu = new window.qBittorrent.ContextMenu.TorrentsTableContextMenu({
|
|
|
|
targets: '.torrentsTableContextMenuTarget',
|
|
|
|
menu: 'torrentsTableMenu',
|
|
|
|
actions: {
|
|
|
|
start: function(element, ref) {
|
|
|
|
startFN();
|
|
|
|
},
|
|
|
|
pause: function(element, ref) {
|
|
|
|
pauseFN();
|
|
|
|
},
|
|
|
|
forceStart: function(element, ref) {
|
|
|
|
setForceStartFN();
|
|
|
|
},
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
delete: function(element, ref) {
|
|
|
|
deleteFN();
|
|
|
|
},
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
setLocation: function(element, ref) {
|
|
|
|
setLocationFN();
|
|
|
|
},
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
rename: function(element, ref) {
|
|
|
|
renameFN();
|
|
|
|
},
|
|
|
|
queueTop: function(element, ref) {
|
|
|
|
setQueuePositionFN('topPrio');
|
|
|
|
},
|
|
|
|
queueUp: function(element, ref) {
|
|
|
|
setQueuePositionFN('increasePrio');
|
|
|
|
},
|
|
|
|
queueDown: function(element, ref) {
|
|
|
|
setQueuePositionFN('decreasePrio');
|
|
|
|
},
|
|
|
|
queueBottom: function(element, ref) {
|
|
|
|
setQueuePositionFN('bottomPrio');
|
|
|
|
},
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
downloadLimit: function(element, ref) {
|
|
|
|
downloadLimitFN();
|
|
|
|
},
|
|
|
|
uploadLimit: function(element, ref) {
|
|
|
|
uploadLimitFN();
|
|
|
|
},
|
|
|
|
shareRatio: function(element, ref) {
|
|
|
|
shareRatioFN();
|
|
|
|
},
|
|
|
|
|
|
|
|
sequentialDownload: function(element, ref) {
|
|
|
|
toggleSequentialDownloadFN();
|
|
|
|
},
|
|
|
|
firstLastPiecePrio: function(element, ref) {
|
|
|
|
toggleFirstLastPiecePrioFN();
|
|
|
|
},
|
|
|
|
|
|
|
|
autoTorrentManagement: function(element, ref) {
|
|
|
|
autoTorrentManagementFN();
|
|
|
|
},
|
|
|
|
forceRecheck: function(element, ref) {
|
|
|
|
recheckFN();
|
|
|
|
},
|
|
|
|
forceReannounce: function(element, ref) {
|
|
|
|
reannounceFN();
|
|
|
|
},
|
2017-08-06 05:04:39 -04:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
superSeeding: function(element, ref) {
|
|
|
|
setSuperSeedingFN(!ref.getItemChecked('superSeeding'));
|
|
|
|
}
|
|
|
|
},
|
|
|
|
offsets: {
|
|
|
|
x: -15,
|
|
|
|
y: 2
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
2019-08-11 23:53:20 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', contextMenu);
|
2014-11-22 14:51:14 +03:00
|
|
|
|
2019-08-11 23:53:20 -07:00
|
|
|
return exports();
|
|
|
|
})();
|
2010-08-15 08:49:19 +00:00
|
|
|
</script>
|